1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-14 11:30:16 +01:00
pingvin-share/Caddyfile

16 lines
484 B
Caddyfile
Raw Normal View History

: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}
}
}