mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-02-16 10:40:51 +00:00
22 lines
477 B
Nginx Configuration File
22 lines
477 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html;
|
|
|
|
location / {
|
|
# SPA fallback: serve index.html for non-file routes so Vue Router can render NotFound
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Let real 404s for assets return 404s; Vue handles route-level 404 via the SPA fallback above.
|
|
|
|
location /static/ {
|
|
# Serve static files directly
|
|
expires max;
|
|
access_log off;
|
|
}
|
|
} |