diff --git a/infra/nginx/conf.d/fallback_server.conf b/infra/nginx/conf.d/fallback_server.conf deleted file mode 100644 index d01f612..0000000 --- a/infra/nginx/conf.d/fallback_server.conf +++ /dev/null @@ -1,8 +0,0 @@ -server { - listen 80 default_server; - root /usr/share/nginx/static; - - location /static { - alias /usr/share/nginx/static; - } -} diff --git a/infra/nginx/vhost.d/default b/infra/nginx/vhost.d/default new file mode 100644 index 0000000..c05368f --- /dev/null +++ b/infra/nginx/vhost.d/default @@ -0,0 +1,3 @@ +location /static { + alias /usr/share/nginx/static; +} \ No newline at end of file diff --git a/infra/server/start_nginx_acme.sh b/infra/server/start_nginx_acme.sh index 093785b..25bbaa4 100644 --- a/infra/server/start_nginx_acme.sh +++ b/infra/server/start_nginx_acme.sh @@ -16,6 +16,7 @@ docker run --detach \ --volume ./infra/nginx/conf.d/custom_proxy.conf:/etc/nginx/conf.d/custom_proxy.conf \ --volume ./infra/nginx/conf.d/fallback_server.conf:/etc/nginx/conf.d/fallback_server.conf \ --volume staticfiles:/usr/share/nginx/static \ + --volume ./infra/nginx/vhost.d/default:/etc/nginx/vhost.d/default \ --network shared \ nginxproxy/nginx-proxy