GitHub user vnk123 added a comment to the discussion: Launch Superset from
existing sub domain
Attached are the references we made based on your inputs,
In superset_config.py we added below lines:
ENABLE_PROXY_FIX = True
#BASE_URL = "/analytics"
SUPERSET_APP_ROOT = "/analytics"
APPLICATION_ROOT = "/analytics"
STATIC_ASSETS_PREFIX = "/analytics"
In superset.service file we added below lines:
ExecStart=/opt/dbp/superset/superset_venv/bin/gunicorn \
--workers 2 \
--worker-class sync \
--timeout 600 \
--bind 0.0.0.0:8089 \
--max-requests 1000 \
--max-requests-jitter 100 \
--preload \
--env SUPERSET_APP_ROOT=/analytics \
"superset.app:create_app()"
In Apache2 config we added below lines:
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
ProxyPreserveHost On
ProxyRequests Off
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
RequestHeader set X-Forwarded-Host "%{Host}s"
RequestHeader set X-Forwarded-Prefix "/analytics"
# Main Superset reverse proxy root
ProxyPass / http://127.0.0.1:8089/
ProxyPassReverse / http://127.0.0.1:8089/
Header edit Location "^/superset/(.*)" "/$1"
# WebSockets
ProxyPassMatch ^/socket.io(.*) ws://127.0.0.1:8089/socket.io$1
When we access abc.test.io/analytics we are landing in page 404 error. Please
help🙏
GitHub link:
https://github.com/apache/superset/discussions/36453#discussioncomment-15205016
----
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]