- Clone all 5 Zonemaster component repos (LDNS, Engine, CLI, Backend, GUI) - Dockerfile.backend: 8-stage multi-stage build LDNS→Engine→CLI→Backend - Dockerfile.gui: Astro static build served via nginx - docker-compose.yml: backend (internal) + frontend (port 5353) - nginx.conf: root redirects to /es/, /api/ proxied to backend - zonemaster-gui/config.ts: defaultLanguage set to 'es' (Spanish) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
593 B
Plaintext
27 lines
593 B
Plaintext
server {
|
|
listen 80;
|
|
|
|
root /var/www/html/zonemaster-web-gui/dist;
|
|
index index.html;
|
|
|
|
location /api {
|
|
proxy_pass http://localhost:5000;
|
|
}
|
|
|
|
# Serve exact files if they exist
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# Rewrite /result/{id} to /result/id/index.html
|
|
location ~ ^/result/[^/]+/?$ {
|
|
try_files /result/id/index.html =404;
|
|
}
|
|
|
|
# Rewrite /{lang}/result/{id} to /{lang}/result/id/index.html
|
|
location ~ ^/([^/]+)/result/[^/]+/?$ {
|
|
set $lang $1;
|
|
try_files /$lang/result/id/index.html =404;
|
|
}
|
|
}
|