GitHub user dosubot[bot] added a comment to the discussion: Cannot config 
APPLICATION_ROOT and STATIC_ASSETS_PREFIX

<!-- Answer -->
Superset’s subpath deployment (using APPLICATION_ROOT and STATIC_ASSETS_PREFIX) 
is still BETA in 6.0.0 and has some known gaps. The static asset prefix often 
doesn’t apply everywhere, and the user_info menu URL is hardcoded without the 
prefix—these are recognized issues and not fully fixed in your version 
[[source](https://github.com/apache/superset/issues/35027)].

For best results, set the environment variable SUPERSET_APP_ROOT to 
`/analytics` in your Helm values (not just in superset_config.py), and let 
Superset auto-populate APPLICATION_ROOT and STATIC_ASSETS_PREFIX. Also, set 
ENABLE_PROXY_FIX = True and PROXY_FIX_CONFIG = {"x_for": 1, "x_proto": 1, 
"x_host": 1, "x_port": 1, "x_prefix": 1} to ensure Superset trusts the 
X-Forwarded-Prefix header from nginx. Your nginx config should set 
`proxy_set_header X-Forwarded-Prefix /analytics;` 
[[source](https://github.com/apache/superset/issues/35712)].

The missing prefix in user_info is a known bug; the only workaround is to 
rewrite `/user_info/` to `/analytics/user_info/` at the proxy or with custom 
middleware until a newer Superset release lands with a fix 
[[source](https://github.com/apache/superset/issues/35027)]. Static assets may 
also need explicit proxy rules for `/analytics/static/` 
[[source](https://github.com/apache/superset/discussions/36453)].

After changing config, clear your browser cache to avoid stale bootstrap data 
causing broken links. If you need more robust subpath support, consider 
upgrading to a release after late 2025 or using a subdomain instead of a 
subpath [[source](https://github.com/apache/superset/discussions/36903)].

Let me know if you want example Helm values or nginx config for this setup.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/b1efbfc8-b010-4601-b94c-4d01c1a63cf4?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Superset%E2%80%99s%20subpath%20deployment%20%28using%20APPLICATION_ROOT%20and%20STATIC_ASSETS_PREFIX%29%20is%20still%20BETA%20in%206.0.0%20and%20has%20some%20known%20gaps.%20The%20static%20asset%20prefix%20often%20doesn%E2%80%99t%20apply%20everywhere%2C%20and%20the%20user_info%20menu%20URL%20is%20hardcoded%20without%20the%20prefix%E2%80%94these%20are%20recognized%20issues%20and%20not%20fully%20fixed%20in%20your%20version%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/35027%29%5D.%0A%0AFor%20best%20results%2C%20set%20the%20environment%20variable%20SUPERSET_APP_ROOT%20to%20%60/analytics%60%20in%20your%20Helm%20values%20%28not%20just%20in%20superset_config.py%29%2C%20and%20let%20Superset%20auto-populate%20APPLICATION_ROOT%20and%20STATIC_
 
ASSETS_PREFIX.%20Also%2C%20set%20ENABLE_PROXY_FIX%20%3D%20True%20and%20PROXY_FIX_CONFIG%20%3D%20%7B%22x_for%22%3A%201%2C%20%22x_proto%22%3A%201%2C%20%22x_host%22%3A%201%2C%20%22x_port%22%3A%201%2C%20%22x_prefix%22%3A%201%7D%20to%20ensure%20Superset%20trusts%20the%20X-Forwarded-Prefix%20header%20from%20nginx.%20Your%20nginx%20config%20should%20set%20%60proxy_set_header%20X-Forwarded-Prefix%20/analytics%3B%60%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/35712%29%5D.%0A%0AThe%20missing%20prefix%20in%20user_info%20is%20a%20known%20bug%3B%20the%20only%20workaround%20is%20to%20rewrite%20%60/user_info/%60%20to%20%60/analytics/user_info/%60%20at%20the%20proxy%20or%20with%20custom%20middleware%20until%20a%20newer%20Superset%20release%20lands%20with%20a%20fix%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/issues/35027%29%5D.%20Static%20assets%20may%20also%20need%20explicit%20proxy%20rules%20for%20%60/analytics/static/%60%20%5B%5Bsource%5D%28https%3A//github.com/ap
 
ache/superset/discussions/36453%29%5D.%0A%0AAfter%20changing%20config%2C%20clear%20your%20browser%20cache%20to%20avoid%20stale%20bootstrap%20data%20causing%20broken%20links.%20If%20you%20need%20more%20robust%20subpath%20support%2C%20consider%20upgrading%20to%20a%20release%20after%20late%202025%20or%20using%20a%20subdomain%20instead%20of%20a%20subpath%20%5B%5Bsource%5D%28https%3A//github.com/apache/superset/discussions/36903%29%5D.%0A%0ALet%20me%20know%20if%20you%20want%20example%20Helm%20values%20or%20nginx%20config%20for%20this%20setup.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/37032)

GitHub link: 
https://github.com/apache/superset/discussions/37032#discussioncomment-15467114

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to