Skip to content

Commit

Permalink
Merge pull request #450 from uw-it-aca/deny-bad-traffic
Browse files Browse the repository at this point in the history
Test pattern based deny
  • Loading branch information
abztrakt authored Jan 7, 2025
2 parents 65b3a9b + 26bf12a commit 05af1e0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM us-docker.pkg.dev/uwit-mci-axdd/containers/django-container:${DJANGO_CONTAI

USER root
RUN apt-get update && apt-get install mysql-client libmysqlclient-dev -y
COPY docker/locations.conf /etc/nginx/includes/locations.conf
USER acait

ADD --chown=acait:acait scout/VERSION /app/scout/
Expand Down
14 changes: 14 additions & 0 deletions docker/locations.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# custom locations.conf
location ~ ^/(phpmyadmin|wp-admin) {
deny all;
}

location /media {
alias /media;
}

location /static {
alias /static;
access_log off;
expires 30d;
}

0 comments on commit 05af1e0

Please sign in to comment.