From 1e40321765c52d467ea8d5f8f2c7d3c2a3eb1ee5 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 10 Aug 2017 17:02:52 +0200 Subject: [PATCH] Create nginx.conf --- conf/nginx.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 conf/nginx.conf 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; + } +}