mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-23 21:20:32 +03:00
18 lines
547 B
Text
18 lines
547 B
Text
|
server {
|
||
|
listen 80 default_server;
|
||
|
|
||
|
error_log /home/shlink/www/data/infra/nginx/mercure_proxy.error.log;
|
||
|
|
||
|
location / {
|
||
|
proxy_pass http://shlink_mercure;
|
||
|
proxy_read_timeout 24h;
|
||
|
proxy_http_version 1.1;
|
||
|
proxy_set_header Connection "";
|
||
|
|
||
|
## Be sure to set USE_FORWARDED_HEADERS=1 to allow the hub to use those headers ##
|
||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
proxy_set_header X-Forwarded-Host $host;
|
||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||
|
}
|
||
|
}
|