Update nginx config to support the SPA

This commit is contained in:
Matt Isenhower 2022-08-19 14:49:17 -07:00
parent 3d041aa06f
commit 5812885830
2 changed files with 11 additions and 0 deletions

View File

@ -11,4 +11,5 @@ services:
image: nginx
restart: unless-stopped
volumes:
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ./dist:/usr/share/nginx/html:ro

View File

@ -0,0 +1,10 @@
server {
listen 80 default_server;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}