1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dispatch_ynh.git synced 2024-09-03 18:25:53 +02:00
dispatch_ynh/conf/nginx.conf

18 lines
435 B
Nginx Configuration File
Raw Normal View History

2021-05-30 12:34:29 +02:00
location / {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
2021-07-08 11:53:42 +02:00
proxy_pass http://127.0.0.1:__PORT__/;
2021-05-30 12:34:29 +02:00
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
2021-07-08 11:53:42 +02:00
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
2021-05-30 12:34:29 +02:00
2021-09-25 15:20:36 +02:00
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
2021-05-30 12:34:29 +02:00
}