Skip to content

feat(docker): add HTTP Basic Authentication support#214

Open
enixCode wants to merge 1 commit intostan-smith:masterfrom
enixCode:feat/http-basic-auth
Open

feat(docker): add HTTP Basic Authentication support#214
enixCode wants to merge 1 commit intostan-smith:masterfrom
enixCode:feat/http-basic-auth

Conversation

@enixCode
Copy link

Changes

  • .env.example - Document new environment variables
  • Dockerfile - Install openssl for password hashing
  • docker-entrypoint.sh - Generate .htpasswd dynamically
  • nginx.conf - Configure auth_basic conditionally
  • compose.yml / compose.dev.yml - Add environment variables
  • .dockerignore - New file for cleaner builds
  • README.md - Document the feature

Usage

  # Enable authentication
  HTTP_AUTH_USER=admin HTTP_AUTH_PASSWORD=secret docker compose up

Test plan

  • Without auth variables → App accessible (200 OK)
  • With auth, no credentials → 401 Unauthorized
  • With auth + correct credentials → 200 OK

Closes #174

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

Successfully merging this pull request may close these issues.

Feature: password

1 participant