1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dispatch_ynh.git synced 2024-09-03 18:25:53 +02:00
This commit is contained in:
ericgaspar 2021-07-08 11:53:42 +02:00
parent 6386a256b8
commit e6f1aca41d
3 changed files with 6 additions and 11 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -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