diff --git a/conf/config.default.toml b/conf/config.default.toml index 0b30d7b..513a775 100644 --- a/conf/config.default.toml +++ b/conf/config.default.toml @@ -1,5 +1,5 @@ # IP address to listen on, leave empty to listen on anything -address = "127.0.0.1" +address = "" port = __PORT__ # Run ident daemon on port 113 identd = true diff --git a/conf/nginx.conf b/conf/nginx.conf index 0831a50..7b4d98f 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -5,16 +5,11 @@ location / { rewrite ^ https://$server_name$request_uri? permanent; } - proxy_pass http://127.0.0.1:__PORT__; - proxy_redirect off; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $server_name; - + proxy_pass http://127.0.0.1:__PORT__/; proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $host; } diff --git a/conf/systemd.service b/conf/systemd.service index b254212..2247ddd 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ After=network-online.target Type=simple User=__APP__ Group=__APP__ -ExecStart=__FINALPATH__/dispatch -a 127.0.0.1 -p __PORT__ +ExecStart=__FINALPATH__/dispatch -a 0.0.0.0 -p __PORT__ Restart=on-failure RestartSec=5 StartLimitInterval=60s