22 lines
448 B
Nginx Configuration File
22 lines
448 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html;
|
|
|
|
location / {
|
|
# All requests are routed to index.html
|
|
try_files $uri /index.html;
|
|
}
|
|
|
|
# Optional: Cache static files to improve performance
|
|
location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|eot|ttf|svg|otf|webp)$ {
|
|
expires 6M;
|
|
access_log off;
|
|
add_header Cache-Control "public";
|
|
}
|
|
}
|