Skip to content

Commit

Permalink
Merge pull request #22 from jsommerville-untangle/15-Fix-Nginx-Revers…
Browse files Browse the repository at this point in the history
…e-Proxy

Fixing reverse proxy default conf
  • Loading branch information
fzipi authored Jan 29, 2021
2 parents e2bafeb + 42bd6a2 commit 9f81a87
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
1 change: 0 additions & 1 deletion 3.3-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ ENV PARANOIA=1 \
MODSEC_PCRE_MATCH_LIMIT_RECURSION=100000

COPY 3.3-nginx/docker-entrypoint.sh /
COPY 3.3-nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
COPY 3.3-nginx/nginx.conf /etc/nginx/nginx.conf
COPY src/opt/modsecurity/activate-rules.sh /opt/modsecurity/
COPY src/etc/modsecurity.d/*.conf /etc/modsecurity.d/
Expand Down
14 changes: 0 additions & 14 deletions 3.3-nginx/conf.d/default.conf

This file was deleted.

2 changes: 2 additions & 0 deletions 3.3-nginx/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash -e

export DNS_SERVER=${DNS_SERVER:-$(cat /etc/resolv.conf |grep -i '^nameserver'|head -n1|cut -d ' ' -f2)}

ENV_VARIABLES=$(awk 'BEGIN{for(v in ENVIRON) print "$"v}')

for FILE in etc/nginx/nginx.conf etc/nginx/conf.d/default.conf etc/nginx/conf.d/logging.conf etc/modsecurity.d/modsecurity-override.conf
Expand Down

0 comments on commit 9f81a87

Please sign in to comment.