Closed changchichung closed 1 year ago
What is your 'SCRIPT_NAME' environment variable set to?
Is that your full docker-compose.yml? What environment do you have set?
full docker-compose.yml
version: "3"
services:
headscale-webui:
image: ifargle/headscale-webui:latest
container_name: headscale-webui
ports:
- 127.0.0.1:8002:5000
environment:
- TZ=Asia/Taipei
- COLOR=red # Use the base colors (ie, no darken-3, etc) -
#- HS_SERVER=https://headscale.$DOMAIN # Reachable endpoint for your Headscale server
- HS_SERVER=https://head.abc.com # Reachable endpoint for your Headscale server
- DOMAIN_NAME=https://hui.abc.com # The base domain name for this container.
- SCRIPT_NAME=/admin # This is your applications base path (wsgi requires the name "SCRIPT_NAME")
- KEY="gDzxOgIWoBEsomesupersecretherej4NyXITM=" # Generate with "openssl rand -base64 32" - used to encrypt your key on disk.
#- AUTH_TYPE=oidc # AUTH_TYPE is either Basic or OIDC. Empty for no authentication
- AUTH_TYPE= # AUTH_TYPE is either Basic or OIDC. Empty for no authentication
- LOG_LEVEL=info # Log level. "DEBUG", "ERROR", "WARNING", or "INFO". Default "INFO"
# ENV for Basic Auth (Used only if AUTH_TYPE is "Basic"). Can be omitted if you aren't using Basic Auth
- BASIC_AUTH_USER=user # Used for basic auth
- BASIC_AUTH_PASS=pass # Used for basic auth
# ENV for OIDC (Used only if AUTH_TYPE is "OIDC"). Can be omitted if you aren't using OIDC
#- OIDC_AUTH_URL=https://auth.$DOMAIN/.well-known/openid-configuration # URL for your OIDC issuer's well-known endpoint
#- OIDC_CLIENT_ID=headscale-webui # Your OIDC Issuer's Client ID for Headscale-WebUI
#- OIDC_CLIENT_SECRET=YourSecretHere # Your OIDC Issuer's Secret Key for Headscale-WebUI
volumes:
- ./volume:/data # Headscale-WebUI's storage. Make sure ./volume is readable by UID 1000 (chown 1000:1000 ./volume)
- ./headscale/config/:/etc/headscale/:ro # Headscale's config storage location. Used to read your Headscale config.
I see: [2023-03-23 09:04:48 +0800] [8] [ERROR] Error handling request / Are you going to https://hui.abc.com/ or https://hui.abc.com/admin ?
Your SCRIPT_NAME
is /admin, you might need to change it to /
thanks , problem solved!
I can not connect to headscale-webui after docker-compose up here is the docker log
and docker-compose.yml
any suggestions ??