fix: nginx cleanUrls routing for VitePress guides
This commit is contained in:
@@ -99,7 +99,7 @@ export default defineConfig({
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: 'Обзор', link: '/infrastructure/test-contour/' },
|
||||
{ text: 'Визуальные гайды', link: '/infrastructure/test-contour/guides/' },
|
||||
{ text: 'Визуальные гайды', link: '/infrastructure/test-contour/guides/overview' },
|
||||
{ text: 'Gitea: теги и CI/CD', link: '/infrastructure/test-contour/guides/gitea-ci' },
|
||||
{ text: 'ArgoCD: приложения', link: '/infrastructure/test-contour/guides/argocd' },
|
||||
{ text: 'Grafana / Prometheus / Loki', link: '/infrastructure/test-contour/guides/monitoring' },
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
# Визуальные гайды test-контура
|
||||
# Визуальные гайды test-контура {#overview}
|
||||
|
||||
Пошаговые инструкции со **скриншотами** реального UI песочницы: Gitea CI, ArgoCD, Grafana, Prometheus и Loki.
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
### Визуальные гайды (скриншоты)
|
||||
|
||||
- [Обзор гайдов](./guides/) — Gitea, ArgoCD, Grafana, Prometheus, Loki
|
||||
- [Обзор гайдов](./overview) — Gitea, ArgoCD, Grafana, Prometheus, Loki
|
||||
- [Gitea: теги и CI/CD](./guides/gitea-ci)
|
||||
- [ArgoCD: приложения](./guides/argocd)
|
||||
- [Grafana / Prometheus / Loki](./guides/monitoring)
|
||||
|
||||
+5
-2
@@ -4,11 +4,14 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# VitePress cleanUrls: each page is a *.html file on disk
|
||||
location / {
|
||||
try_files $uri $uri/ $uri/index.html /index.html;
|
||||
try_files $uri $uri.html $uri/ $uri/index.html =404;
|
||||
}
|
||||
|
||||
location ~* \.(html|css|js|json|svg|woff2?|png|jpg|jpeg|gif|ico)$ {
|
||||
location ~* \.(html|css|js|json|svg|woff2?|png|jpg|jpeg|gif|ico|webp)$ {
|
||||
add_header Cache-Control "public, max-age=3600";
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user