mirror of
https://github.com/wallabag/docker
synced 2025-12-13 09:46:27 +00:00
Merge pull request #265 from hwiorn/fix-nginx-conf-for-reverse-proxy-with-https
Fix nginx.conf for reverse-proxy with HTTPS
This commit is contained in:
@@ -10,7 +10,7 @@ fastcgi_param DOCUMENT_URI $document_uri;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
fastcgi_param SERVER_PROTOCOL $server_protocol;
|
||||
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 SERVER_SOFTWARE nginx/$nginx_version;
|
||||
|
||||
@@ -25,6 +25,10 @@ http {
|
||||
open_file_cache max=100;
|
||||
client_max_body_size 100M;
|
||||
|
||||
map $http_x_forwarded_proto $fe_https {
|
||||
default $https;
|
||||
https on;
|
||||
}
|
||||
|
||||
upstream php-upstream {
|
||||
server 127.0.0.1:9000;
|
||||
|
||||
Reference in New Issue
Block a user