1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/psitransfer_ynh.git synced 2024-09-03 20:16:06 +02:00

Create nginx.conf

This commit is contained in:
frju365 2017-08-10 17:02:52 +02:00 committed by GitHub
parent d1fc419eed
commit 1e40321765

15
conf/nginx.conf Normal file
View file

@ -0,0 +1,15 @@
location / {
proxy_pass http://localhost:__PORT__/;
add_header X-Frame-Options SAMEORIGIN;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
}