Skip to content

Commit eb554a0

Browse files
committed
Make sure it is just https since that is the point of proxycrypt
1 parent c119cde commit eb554a0

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

etc/default.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ server {
6464
proxy_redirect ${PROXY_REDIRECT};
6565
proxy_set_header Host $upstream_host;
6666
proxy_set_header X-Forwarded-Host $upstream_host;
67-
proxy_set_header X-Forwarded-Proto $upstream_proto;
67+
proxy_set_header X-Forwarded-Proto https;
6868
proxy_set_header X-Forwarded-Port $upstream_port;
6969

7070
proxy_set_header X-Forwarded-Prefix ${PROXY_PATH};

etc/nginx.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ http {
6262
"" $http_host;
6363
}
6464

65-
map $http_x_forwarded_proto $upstream_proto {
66-
default $http_x_forwarded_proto;
67-
"" $scheme;
68-
}
69-
7065
map $http_x_forwarded_port $upstream_port {
7166
default $http_x_forwarded_port;
7267
"" $server_port;

0 commit comments

Comments
 (0)