Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define and access gui using localhost or 0.0.0.0 #136

Open
Mahaaveer opened this issue Feb 8, 2024 · 0 comments
Open

Define and access gui using localhost or 0.0.0.0 #136

Mahaaveer opened this issue Feb 8, 2024 · 0 comments

Comments

@Mahaaveer
Copy link

`version: '3.5'
services:
headscale:
image: headscale/headscale:latest
volumes:
- ./config:/etc/headscale/
- ./data:/var/lib/headscale
ports:
- 9700:9700
command: headscale serve
restart: unless-stopped

headscale-webui:
image: ghcr.io/ifargle/headscale-webui:latest
container_name: headscale-webui
environment:
  - TZ=America/Chicago
  - PGID=1000
  - PUID=1000
  - COLOR=blue                              # Use the base colors (ie, no darken-3, etc) - 
  - HS_SERVER=http://localhost:9700    # Reachable endpoint for your Headscale server
  - DOMAIN_NAME=http://localhost:9700  # The base domain name for this container.
  - SCRIPT_NAME=/admin                     # This is your applications base path (wsgi requires the name "SCRIPT_NAME").  Remove if you are hosing at the root /
  - KEY="a-really-long-key-you-create-with-the-command-in-the-comment"             # Generate with "openssl rand -base64 32" - used to encrypt your key on disk.
  - AUTH_TYPE=Basic                        # 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=pa55word                  # 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://yourauthserver.com/application/o/headscale/.well-known/openid-configuration # URL for your OIDC issuer's well-known endpoint
  #- OIDC_CLIENT_ID=your-auth-server-client-id-info-here         # Your OIDC Issuer's Client ID for Headscale-WebUI
  #- OIDC_CLIENT_SECRET=your-oidc-auth-server-client-secret-key-will-go-here-and-be-very-long-indeed      # Your OIDC Issuer's Secret Key for Headscale-WebUI
ports:
  - 5000:5000
volumes:
  - ./volume:/data                         # Headscale-WebUI's storage.  Make sure ./volume is readable by UID 1000 (chown 1000:1000 ./volume)
  - ./config/:/etc/headscale/:ro           # Headscale's config storage location.  Used to read your Headscale config.`

Struck with internal server error. not sure how to configure local address in the yml and what url to visit on a browser. http://localhost/admin does not work. however, http://localhost:5000/admin prompts for user name and password before saying too may redirects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant