mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-16 23:55:08 +00:00
5e16e10e9a
- Introduced LDAP authentication configuration options in the README and Docker Compose files. - Updated API to handle dual authentication methods (LDAP and legacy). - Implemented LDAP authentication logic in a new ldap.go file. - Enhanced user login flow to support username and password for LDAP. - Added error handling for authorization and authentication failures. - Updated UI to include username input when LDAP is enabled and provide authentication options. - Added localization for new authentication messages in English and Chinese.
Quick Start
This guide shows how to deploy glkvm-cloud using the provided Docker Compose environment template.
-
Clone the repository and prepare the environment template
git clone https://github.com/gl-inet/glkvm-cloud.git cd glkvm-cloud/docker-compose/ cp .env.example .env -
Configure environment variables
Edit
.envand update the required parameters:RTTYS_TOKEN: device connection token (leave empty to use the default)RTTYS_PASS: web management password (leave empty to use the default StrongP@ssw0rd)TURN_USER/TURN_PASS: coturn authentication credentials (leave empty to use the default)GLKVM_ACCESS_IP: glkvm cloud access address (leave empty to auto-detect at startup)
LDAP Authentication (Optional):
LDAP_ENABLED: set totrueto enable LDAP authentication (default:false)LDAP_SERVER: LDAP server hostname or IP addressLDAP_PORT: LDAP server port (default:389, for TLS use636)LDAP_USE_TLS: set totrueto enable TLS encryption (default:false)LDAP_BIND_DN: service account distinguished nameLDAP_BIND_PASSWORD: service account passwordLDAP_BASE_DN: search base for user queriesLDAP_USER_FILTER: LDAP query filter (default:(uid=%s))LDAP_ALLOWED_GROUPS: comma-separated list of authorized groups (optional)LDAP_ALLOWED_USERS: comma-separated list of authorized users (optional)
⚠️ Note: All configuration should be done in the
.envfile. You don’t need to modifydocker-compose.yml, templates, or scripts directly. -
Start the services
docker-compose up -dIf you modify
.envor template files, make sure to apply the updates:docker-compose down && docker-compose up -d -
Platform Access
Once the installation is complete, access the platform via:
https://<your_server_public_ip>