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 / {