You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2025/03/05 13:11:30 UTC

(superset) 06/18: fix(docker): Configure nginx for consistent port mapping and hot reloading (#32362)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 5.0
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 98c82ad24e864a4a1b194b74be61043873d5f77f
Author: Vedant Prajapati <40...@users.noreply.github.com>
AuthorDate: Mon Feb 24 11:53:51 2025 -0500

    fix(docker): Configure nginx for consistent port mapping and hot reloading   (#32362)
    
    (cherry picked from commit 0f07d78e01cdce9fb47f241376fba8e71c19f895)
---
 docker/nginx/nginx.conf | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf
index eda47ef580..e60a07fbdf 100644
--- a/docker/nginx/nginx.conf
+++ b/docker/nginx/nginx.conf
@@ -112,6 +112,12 @@ http {
             proxy_set_header Host $host;
         }
 
+        location /static {
+            proxy_pass http://host.docker.internal:9000;  # Proxy to superset-node
+            proxy_http_version 1.1;
+            proxy_set_header Host $host;
+        }
+
         location / {
             proxy_pass http://superset_app;
             proxy_set_header    Host                $host;