Skip to content

Commit

Permalink
Add ip detectin for reverse proxy, ipv4 only for now #11
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed Feb 4, 2022
1 parent 3cc9542 commit 22b60f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
client_max_body_size 1g;
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
- vhost:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- certs:/etc/nginx/certs:ro
- ./common_settings:/etc/nginx/vhost.d/${DOMAIN_NAME}_location:ro
labels:
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
restart: always
Expand All @@ -31,6 +32,7 @@ services:
- certs:/etc/nginx/certs:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- ./common_settings:/etc/nginx/vhost.d/${DOMAIN_NAME}_location:ro
restart: always

letsencrypt:
Expand Down

0 comments on commit 22b60f2

Please sign in to comment.