From 72c13e114233e873a5ddcde93a0e19420c6b8f93 Mon Sep 17 00:00:00 2001 From: Limezy Date: Thu, 17 Feb 2022 13:26:03 +0700 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 7eb5665..44fd264 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,10 +1,16 @@ location / { + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + proxy_pass http://127.0.0.1:__PORT__/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_cache_bypass $http_upgrade; proxy_ignore_client_abort on; + client_max_body_size 200M; # forward headers proxy_buffering off;