Skip to content

Commit

Permalink
ITKDevOps: Updated nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
cableman committed Dec 4, 2024
1 parent 66f6949 commit e17f26a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

set_real_ip_from 172.16.0.0/8;
set_real_ip_from 172.16.0.0/16;
real_ip_recursive on;
real_ip_header X-Forwarded-For;

Expand Down
4 changes: 4 additions & 0 deletions .docker/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ server {

client_max_body_size ${NGINX_MAX_BODY_SIZE};

set_real_ip_from 172.16.0.0/16;
real_ip_recursive on;
real_ip_header X-Forwarded-For;

location = /favicon.ico {
log_not_found off;
access_log off;
Expand Down
94 changes: 0 additions & 94 deletions .docker/vhost.conf

This file was deleted.

0 comments on commit e17f26a

Please sign in to comment.