From 488d32bf992ab0b23092fdbcfd6d2e49e863be3d Mon Sep 17 00:00:00 2001 From: David Mejia Date: Fri, 3 Nov 2023 11:28:21 -0400 Subject: [PATCH] serve static files from var/www/static_volumes --- .../api-configuration/api-server-instance-user-data.tpl.sh | 6 +++--- infrastructure/api-configuration/nginx_config.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh b/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh index e107e8aa2..8197ffde1 100644 --- a/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh +++ b/infrastructure/api-configuration/api-server-instance-user-data.tpl.sh @@ -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}" diff --git a/infrastructure/api-configuration/nginx_config.conf b/infrastructure/api-configuration/nginx_config.conf index 3b025c18f..4b9052212 100644 --- a/infrastructure/api-configuration/nginx_config.conf +++ b/infrastructure/api-configuration/nginx_config.conf @@ -50,7 +50,7 @@ http { location /static { autoindex on; - alias /tmp/volumes_static/; + alias /var/www/volumes_static/; } location / {