Redirect to localhost:8088 in Superset running on GitHub Codespaces (Docker) #39777
Replies: 1 comment
-
|
Hi @volktier! I'm Dosu and I’m helping the superset team. The redirect to The fix is ENABLE_PROXY_FIX = True
PROXY_FIX_CONFIG = {
"x_for": 1,
"x_proto": 1,
"x_host": 1,
"x_port": 1,
"x_prefix": 1,
}This enables Werkzeug's A few notes on what you tried:
Also, since Codespaces handles HTTPS termination, make sure Talisman doesn't try to force HTTPS itself [4]: TALISMAN_CONFIG = {
"force_https": False,
"content_security_policy": None, # or configure as needed
}If proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto https;To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone
I’m running Apache Superset via Docker Compose in GitHub Codespaces.
The UI is accessible at github dev.
The issue:
When I click the only “Create Dashboard” button, Superset redirects me to localhost:8088/ dashboard/new/ instead of staying on the Codespaces domain.
What I’ve already tried:
Setting variables in docker-compose
ENABLE_PROXY_FIX: “true”
CYPRESS_CONFIG_BASE_URL: https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev/
OVERRIDE_BASE_URL = “https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev/”
superset:image: apache/superset:latestcontainer_name: supersetuser: rootvolumes:- ./superset_config.py:/app/pythonpath/superset_config.pyenvironment:ENABLE_PROXY_FIX: "true"SUPERSET_SECRET_KEY: 'your-secret-key-change-this'PYTHONPATH: "/usr/local/lib/python3.10/site-packages:/app/pythonpath"ports:- "8088:8088"networks:- greenplum-netcommand: >sh -c "pip install --no-cache-dir psycopg2-binary &&superset fab create-admin --username admin --firstname admin --lastname admin --email admin@example.com --password admin &&superset db upgrade &&superset init &&gunicorn --bind 0.0.0.0:8088 --workers 4 --worker-class gthread --timeout 60 \"superset.app:create_app()\"` "
superset_config.py:
must be https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev/dashboard/new/
endless loading if i try:
SUPERSET_WEBSERVER_DOMAINS = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
OVERRIDE_BASE_URL = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
endless loading if i try:
SUPERSET_WEBSERVER_DOMAINS = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
redirect to http://localhost:8088/dashboard/new/ if i try:
SUPERSET_WEBSERVER_ADDRESS = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
OVERRIDE_BASE_URL = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
redirect to http://localhost:8088/dashboard/new/ if i try:
SUPERSET_WEBSERVER_ADDRESS = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
redirect to http://localhost:8088/dashboard/new/ if i try:
SUPERSET_WEBSERVER_BASEURL = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
OVERRIDE_BASE_URL = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
redirect to http://localhost:8088/dashboard/new/ if i try:
SUPERSET_WEBSERVER_BASEURL = 'https://friendly-capybara-7jvxwxv77w7hpj44-8088.app.github.dev'
Beta Was this translation helpful? Give feedback.
All reactions