diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100644 index 0000000..23a0f33 --- /dev/null +++ b/conf/nginx.conf @@ -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; + } +}