add nginx.conf
This commit is contained in:
15
nginx.conf
Normal file
15
nginx.conf
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
# Set the root directory for the application
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
|
# Default index file
|
||||||
|
index index.html;
|
||||||
|
|
||||||
|
# Handle routes with Angular's HTML5 mode
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.html =404;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user