Skip to content

Commit

Permalink
Merge pull request #453 from uw-it-aca/develop
Browse files Browse the repository at this point in the history
Main <- Develop
  • Loading branch information
abztrakt authored Jan 8, 2025
2 parents 24b9d31 + 96fa238 commit 1691355
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 ~ ^/(?i)(.*\.php|phpmyadmin|wp-.*) {
deny all;
}

location /media {
alias /media;
}

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

0 comments on commit 1691355

Please sign in to comment.