From 69856b64777ce437f3e6e2316fb4363a1e1e15d3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 9 Jan 2021 12:41:36 +0100 Subject: [PATCH] Create nginx.conf --- conf/nginx.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 conf/nginx.conf diff --git a/conf/nginx.conf b/conf/nginx.conf new file mode 100755 index 0000000..d00f7c5 --- /dev/null +++ b/conf/nginx.conf @@ -0,0 +1,14 @@ +#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +location __PATH__/ { + + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + + proxy_pass http://127.0.0.1:__PORT__; + proxy_set_header X-Forwarded-For $remote_addr; + + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; +}