mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-16 12:20:13 +01:00
16 lines
484 B
Caddyfile
16 lines
484 B
Caddyfile
:3000 {
|
|
# Reverse proxy for /api
|
|
reverse_proxy /api/* http://localhost:8080 {
|
|
header_up X-Forwarded-Host {host}:{server_port}
|
|
header_up X-Forwarded-For {remote_host}
|
|
header_up X-Forwarded-Proto {scheme}
|
|
}
|
|
|
|
# Reverse proxy for all other requests
|
|
reverse_proxy http://localhost:3333 {
|
|
header_up X-Forwarded-Host {host}:{server_port}
|
|
header_up X-Forwarded-For {remote_host}
|
|
header_up X-Forwarded-Proto {scheme}
|
|
}
|
|
}
|