Setup nginx conf for single-page routing

This commit is contained in:
2022-04-09 09:34:29 -05:00
parent ecdb474f7e
commit c28b8de128
5 changed files with 30 additions and 1 deletions

15
nginx.conf Normal file
View File

@@ -0,0 +1,15 @@
worker_processes 4;
events { worker_connections 1024; }
http {
server {
listen 80;
root /usr/share/nginx/html;
include /etc/nginx/mime.types;
location / {
try_files $uri $uri/ /index.html;
}
}
}