From 9de06226663e358514d3bd1d1e80fe43fd37c03e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 8 Oct 2021 00:05:40 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4de64d1..f80bb1e 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,9 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; +if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;