Skip to content

Commit 7875cff

Browse files
committed
feat: add nginx configuration for dashboard static assets
- Introduced a new location block for serving dashboard static assets without authentication. - Configured proxy settings to ensure proper handling of requests to the dashboard. This change enhances the accessibility of dashboard resources while maintaining existing security measures for other endpoints.
1 parent 6c74aa9 commit 7875cff

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

nginx.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ http {
6666
proxy_buffering off;
6767
}
6868

69+
# Dashboard static assets (no authentication)
70+
location ^~ /dashboard/static/ {
71+
proxy_pass http://localhost:8080;
72+
proxy_set_header Host $host;
73+
proxy_set_header X-Real-IP $remote_addr;
74+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
75+
proxy_set_header X-Forwarded-Proto https;
76+
proxy_set_header X-Forwarded-Port 443;
77+
proxy_buffering off;
78+
}
79+
6980
# Dagster homepage entry point
7081
location = /dagster {
7182
# Basic authentication for Dagster access

0 commit comments

Comments
 (0)