Skip to content

Commit bc9c332

Browse files
committed
Foward real ip address
1 parent e456ca0 commit bc9c332

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

conf.d/realip.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set_real_ip_from 172.19.0.0/32;
2+
real_ip_header X-Real-IP;
3+
#real_ip_header X-Forwarded-For;
4+
#real_ip_header proxy_protocol
5+
real_ip_recursive on;

conf.d/uploadsize.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
client_max_body_size 10G;
1+
client_max_body_size 2G;

nginx.tmpl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ upstream {{ $upstream_name }} {
152152
{{/* Get the NETWORK_ACCESS defined by containers w/ the same vhost, falling back to "external" */}}
153153
{{ $network_tag := or (first (groupByKeys $containers "Env.NETWORK_ACCESS")) "external" }}
154154

155-
{{/* Get the NETWORK_ACCESS defined by containers w/ the same vhost, falling back to "external" */}}
156-
{{ $network_tag := or (first (groupByKeys $containers "Env.NETWORK_ACCESS")) "external" }}
157-
158155
{{/* Get the HTTPS_METHOD defined by containers w/ the same vhost, falling back to "redirect" */}}
159156
{{ $https_method := or (first (groupByKeys $containers "Env.HTTPS_METHOD")) "redirect" }}
160157

0 commit comments

Comments
 (0)