1
0
mirror of https://github.com/wallabag/docker synced 2025-12-13 17:56:31 +00:00

Fix nginx.conf for reverse-proxy with HTTPS

This commit is contained in:
hwiorn
2021-05-23 01:38:46 +09:00
committed by Jérémy Benoist
parent 43a26d7406
commit 054677bb02
2 changed files with 5 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param REQUEST_SCHEME $scheme; fastcgi_param REQUEST_SCHEME $scheme;
fastcgi_param HTTPS $https if_not_empty; fastcgi_param HTTPS $fe_https;
fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;

View File

@@ -25,6 +25,10 @@ http {
open_file_cache max=100; open_file_cache max=100;
client_max_body_size 100M; client_max_body_size 100M;
map $http_x_forwarded_proto $fe_https {
default off;
https on;
}
upstream php-upstream { upstream php-upstream {
server 127.0.0.1:9000; server 127.0.0.1:9000;