mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-16 11:25:09 +01:00
Pass original request protocol from proxy to NC
Signed-off-by: Greg Poole <m4dm4n@gmail.com>
This commit is contained in:
parent
4d9460c191
commit
e01becb143
4 changed files with 24 additions and 4 deletions
|
@ -35,6 +35,11 @@ http {
|
|||
server app:9000;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $pass_https {
|
||||
default off;
|
||||
https on;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
|
@ -119,7 +124,7 @@ http {
|
|||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
# fastcgi_param HTTPS on;
|
||||
fastcgi_param HTTPS $pass_https;
|
||||
|
||||
# Avoid sending the security headers twice
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
|
|
|
@ -35,6 +35,11 @@ http {
|
|||
server app:9000;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $pass_https {
|
||||
default off;
|
||||
https on;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
|
@ -119,7 +124,7 @@ http {
|
|||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
# fastcgi_param HTTPS on;
|
||||
fastcgi_param HTTPS $pass_https;
|
||||
|
||||
# Avoid sending the security headers twice
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
|
|
|
@ -35,6 +35,11 @@ http {
|
|||
server app:9000;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $pass_https {
|
||||
default off;
|
||||
https on;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
|
@ -119,7 +124,7 @@ http {
|
|||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
# fastcgi_param HTTPS on;
|
||||
fastcgi_param HTTPS $pass_https;
|
||||
|
||||
# Avoid sending the security headers twice
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
|
|
|
@ -35,6 +35,11 @@ http {
|
|||
server app:9000;
|
||||
}
|
||||
|
||||
map $http_x_forwarded_proto $pass_https {
|
||||
default off;
|
||||
https on;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
|
@ -119,7 +124,7 @@ http {
|
|||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
# fastcgi_param HTTPS on;
|
||||
fastcgi_param HTTPS $pass_https;
|
||||
|
||||
# Avoid sending the security headers twice
|
||||
fastcgi_param modHeadersAvailable true;
|
||||
|
|
Loading…
Add table
Reference in a new issue