Add nginx basic auth via docker-compose environment variables
Credentials set via AUTH_USER / AUTH_PASS in docker-compose.yml. Entrypoint generates htpasswd at container start using openssl. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,3 +4,6 @@ services:
|
||||
ports:
|
||||
- "8080:80"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
AUTH_USER: hochzeit
|
||||
AUTH_PASS: changeme
|
||||
|
||||
Reference in New Issue
Block a user