docs: serve the site under /docs/ (VitePress base + nginx)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m56s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 5m56s
On the platform cluster the docs are an orca route (/docs/*) on the dashboard host, prefix not stripped. Build with base /docs/, copy the dist to html/docs, redirect / → /docs/. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit is contained in:
1 parent
e448a33778
commit
9550effa34
3 files changed
+14
-3
No files matched your search
+2
-1
@@ -10,6 +10,7 @@ RUN npm run build
|
||||
FROM nginx:alpine
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY docs/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/.vitepress/dist /usr/share/nginx/html
|
||||
# base is /docs/ (see docs/.vitepress/config.mts) — the site lives under /docs/
|
||||
COPY --from=builder /app/.vitepress/dist /usr/share/nginx/html/docs
|
||||
EXPOSE 80
|
||||
|
||||
@@ -2,6 +2,9 @@ import { defineConfig } from 'vitepress'
|
||||
import { withMermaid } from 'vitepress-plugin-mermaid'
|
||||
|
||||
export default withMermaid(defineConfig({
|
||||
// Served under https://pruefwerk-<env>.breakpilot.com/docs/ (orca route
|
||||
// /docs/* on the dashboard host, prefix not stripped).
|
||||
base: '/docs/',
|
||||
title: 'Prüfwerk',
|
||||
description: 'AI-powered security compliance scanning platform',
|
||||
ignoreDeadLinks: [
|
||||
|
||||
+9
-2
@@ -4,8 +4,15 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ $uri.html /index.html;
|
||||
# The VitePress build uses base /docs/ and is copied to html/docs, so the
|
||||
# site answers on /docs/… both standalone and behind the orca route
|
||||
# pruefwerk-<env>.breakpilot.com/docs/* (prefix not stripped).
|
||||
location = / {
|
||||
return 302 /docs/;
|
||||
}
|
||||
|
||||
location /docs/ {
|
||||
try_files $uri $uri/ $uri.html /docs/index.html;
|
||||
}
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
|
||||
Reference in new issue
Block a user