Skip to content

Commit

Permalink
serve static files from var/www/static_volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsmejia committed Nov 3, 2023
1 parent 6f928b6 commit 488d32b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ EOF

chown -R ubuntu /home/ubuntu

STATIC_VOLUMES=/tmp/volumes_static
mkdir -p /tmp/volumes_static
chmod a+rwx /tmp/volumes_static
STATIC_VOLUMES=/var/www/volumes_static
mkdir -p /var/www/volumes_static
chmod a+rwx /var/www/volumes_static

# Pull the API image.
docker pull "${dockerhub_repo}/${api_docker_image}"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/api-configuration/nginx_config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ http {

location /static {
autoindex on;
alias /tmp/volumes_static/;
alias /var/www/volumes_static/;
}

location / {
Expand Down

0 comments on commit 488d32b

Please sign in to comment.