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

Read initial admin email and password from env vars #3790

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

DavidLievrouw
Copy link

For easier deployment, I need to change the default admin e-mail and password of [email protected] / changeme, to a unique combination.

Instead of having hard-coded default admin e-mail and password of [email protected] / changeme, allow environment variables INITIAL_ADMIN_EMAIL and INITIAL_ADMIN_PASSWORD to be specified. These are read during setupDefaultUser.

    environment:
      - [email protected]
      - INITIAL_ADMIN_PASSWORD=P@ssw0rd

When not specifying these environment variables, a fallback to the default behavior takes place.

@nginxproxymanagerci
Copy link

Docker Image for build 2 is available on DockerHub as jc21/nginx-proxy-manager:github-pr-3790

Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes.

@jc21 jc21 merged commit b330127 into NginxProxyManager:develop Jul 1, 2024
1 check passed
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.

2 participants