diff --git a/Dockerfile b/Dockerfile index 3fc14c15..e1432149 100755 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/docker/locations.conf b/docker/locations.conf new file mode 100644 index 00000000..d99f25d0 --- /dev/null +++ b/docker/locations.conf @@ -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; +}