🔧 Fix Headplane UI configuration and enable external access

- Update docker-compose.yml: simplify environment variables
- Fix headplane-config/config.yaml with proper configuration:
  * Add required server section with correct cookie_secret (32 chars)
  * Configure headscale connection with API key
  * Enable external access via 192.168.0.151:3000/admin/
- Resolve configuration validation errors
- Headplane UI now fully accessible and functional

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
시골약사 2025-09-09 15:10:56 +09:00
parent 76e727fb99
commit 3c6723bcde
2 changed files with 16 additions and 10 deletions

View File

@ -30,15 +30,8 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
- TZ=Asia/Seoul - TZ=Asia/Seoul
- HOST=0.0.0.0
- PORT=3000
- HEADSCALE_URL=http://headscale:8080 - HEADSCALE_URL=http://headscale:8080
- ROOT_API_KEY=${HEADSCALE_API_KEY} - HEADSCALE_API_KEY=${HEADSCALE_API_KEY}
- HEADSCALE_INTEGRATION=docker
- HEADSCALE_CONTAINER=headscale
- COOKIE_SECRET=headscale-ui-secret-key-change-me
- COOKIE_SECURE=false
- DISABLE_API_KEY_LOGIN=false
volumes: volumes:
- ./headplane-config:/etc/headplane - ./headplane-config:/etc/headplane
ports: ports:

View File

@ -1,2 +1,15 @@
# Minimal config file for Headplane headscale:
# Environment variables will override these settings url: http://headscale:8080
api_key: 8qRr1IB.tV95CmA0fLaCiGGIgBfeoN9daHceFkzI
config_strict: false
server:
host: 0.0.0.0
port: 3000
cookie_secret: headscale-ui-secret-32-chars-key
cookie_secure: false
settings:
title: "Headscale 관리 패널"
favicon_url: ""
custom_css: ""