Files

45 lines
1.1 KiB
Plaintext

# DBT Documentation - Data Transformation Docs
# Subpath: /dbt
# Backend: dbt-docs:8080
location /dbt {
# Remove /dbt prefix before forwarding
rewrite ^/dbt(/.*)$ $1 break;
# Forward to DBT docs server
proxy_pass http://dbt-docs:8080;
# Preserve headers
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Timeouts
proxy_connect_timeout 60s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
}
# Static documentation files
location /dbt/static {
rewrite ^/dbt(/.*)$ $1 break;
proxy_pass http://dbt-docs:8080;
proxy_set_header Host $host;
proxy_cache_valid 200 1d;
add_header Cache-Control "public, immutable";
}
# Catalog and manifest files
location /dbt/catalog.json {
rewrite ^/dbt(/.*)$ $1 break;
proxy_pass http://dbt-docs:8080;
proxy_set_header Host $host;
}
location /dbt/manifest.json {
rewrite ^/dbt(/.*)$ $1 break;
proxy_pass http://dbt-docs:8080;
proxy_set_header Host $host;
}