This commit is contained in:
Luck
2021-10-27 23:37:42 +01:00
parent f2c46495b0
commit c6824094c3
9 changed files with 163 additions and 6 deletions

18
docker/nginx.conf Normal file
View File

@@ -0,0 +1,18 @@
# nginx config file for a SPA (single page app)
server {
listen 80 default_server;
gzip on;
gzip_min_length 1000;
gzip_types text/plain text/xml application/javascript text/css;
root /usr/share/nginx/html;
location / {
try_files $uri $uri/index.html /index.html;
}
location ~ \.(?!html) {
try_files $uri =404;
}
}