/
VVRONGG
/
backside
Обзор
Документация
Войти
/
VVRONGG
/
backside
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
master
admin/nginx.conf
25 строк
712 B
VVrongg
add kubec deploy
24 май 2026, 20:16
24 май 2026, 20:16
db9ffee
Код
Авторство
О чём код?
server { listen 80; server_name _; # The SPA is served under /admin/. With `root`, /admin/<path> maps to # /usr/share/nginx/html/admin/<path>; unknown client-side routes fall back # to the SPA entry point so deep links (e.g. /admin/objectives/5) work. location /admin/ { root /usr/share/nginx/html; try_files $uri $uri/ /admin/index.html; } # Bare /admin → /admin/ location = /admin { return 301 /admin/; } # Built JS/CSS are immutable (content-hashed by Vite). location /admin/assets/ { root /usr/share/nginx/html; expires 1y; add_header Cache-Control "public, immutable"; try_files $uri =404; } }