Skip to content

Conversation

@joshuacurtiss
Copy link
Member

When recently reinstalling Nginx Proxy Manager on one of my workstations, I decided to run it in dev mode to keep it local to my project, and I discovered that it crashed because of the "secrets" directory missing.

I discovered we should be creating the "secrets" directory regardless of dev install or not. This just fixes that.

In dev mode, the nginxproxymanager installer could break if the "secrets" directory does
not exist. It should be created regardless of dev mode; its path will just change based on
which mode you're in.

For example, when NOT in dev mode, the secrets directory is created at one of these:
- ~/.nginxproxymanager/secrets
- /etc/nginxproxymanager/secrets

In dev mode, it will be in the project checkout:
- proj/stacks/secrets
@joshuacurtiss joshuacurtiss added the bug Something isn't working label Sep 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a crash in the Nginx Proxy Manager installer when running in development mode by ensuring the "secrets" directory is created regardless of the installation mode.

  • Moves the secrets directory creation outside of the production-only conditional block
  • Ensures the secrets directory is created for both development and production installations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@akamal4 akamal4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, worked with out issue in testing.

@akamal4 akamal4 merged commit 029660e into main Sep 10, 2025
2 checks passed
@joshuacurtiss joshuacurtiss deleted the jcurt/fix-secrets-dir branch September 10, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants