From c52db73eb63cdc28820d963dce736931f186eca2 Mon Sep 17 00:00:00 2001 From: frju365 Date: Tue, 29 Jan 2019 13:27:20 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index dde2979..8586786 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,8 +1,10 @@ -location / { - +location __PATH__/ { + + try_files $uri $uri/index.html; + if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } + rewrite ^ https://$server_name$request_uri? permanent; + } proxy_pass http://localhost:__PORT__/; add_header X-Frame-Options SAMEORIGIN; @@ -20,4 +22,3 @@ location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard) rewrite ^(.*)$ $1/ redirect; } -try_files $uri $uri/index.html;