Automated docker nginx proxy integrated with letsencrypt. Based on https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

realip.conf 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # [WARNING] To enable this files you need to uncomment USE_NGINX_CONF_FILES=true in .env file
  3. #
  4. # [WARNING] Also, read all the comments in .env about NGINX use special conf files
  5. #
  6. #
  7. # Real IP Settings
  8. #
  9. # This option get user's real ip address
  10. # to be fowared to your service container
  11. #
  12. # Basic settings
  13. #
  14. # The option 'set_real_ip_from'
  15. # must correspont to your docker network address
  16. set_real_ip_from 172.18.0.0/32;
  17. real_ip_header X-Real-IP;
  18. real_ip_recursive on;
  19. #
  20. # CloudFlare settings
  21. #
  22. # If you CloudFlare and want to forward the
  23. # user's real IP to your app services you
  24. # must uncomment all lines below and be sure
  25. # to comment the lines of the "Basic settings"
  26. #set_real_ip_from 103.21.244.0/22;
  27. #set_real_ip_from 103.22.200.0/22;
  28. #set_real_ip_from 103.31.4.0/22;
  29. #set_real_ip_from 104.16.0.0/12;
  30. #set_real_ip_from 108.162.192.0/18;
  31. #set_real_ip_from 131.0.72.0/22;
  32. #set_real_ip_from 141.101.64.0/18;
  33. #set_real_ip_from 162.158.0.0/15;
  34. #set_real_ip_from 172.64.0.0/13;
  35. #set_real_ip_from 173.245.48.0/20;
  36. #set_real_ip_from 188.114.96.0/20;
  37. #set_real_ip_from 190.93.240.0/20;
  38. #set_real_ip_from 197.234.240.0/22;
  39. #set_real_ip_from 198.41.128.0/17;
  40. #set_real_ip_from 2400:cb00::/32;
  41. #set_real_ip_from 2606:4700::/32;
  42. #set_real_ip_from 2803:f800::/32;
  43. #set_real_ip_from 2405:b500::/32;
  44. #set_real_ip_from 2405:8100::/32;
  45. #set_real_ip_from 2c0f:f248::/32;
  46. #set_real_ip_from 2a06:98c0::/29;
  47. #real_ip_header X-Forwarded-For;