nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Credential store (API) / Default credentials for DNS providers

Open fabian-born opened this issue 4 years ago • 3 comments

Are you in the right place?

  • If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit.
  • If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask.
  • If you have a feature request for NPM then you are in the right place.

Is your feature request related to a problem? Please describe. Every time when I add a new proxy host with a ssl certificate with DNS challenge I have to copy my API token from my password safe into the required field.

Describe the solution you'd like A central place in the profile configuration where API token can be stored.

fabian-born avatar May 11 '21 17:05 fabian-born

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Mar 11 '24 01:03 github-actions[bot]

Im wondering about the same, its a little bit nervy.

Isnt there even a simple solution, like mounting any file, that i can replace with docker? i mean in theory i can replace any file in the docker image with a readonly mounted file?

In the Docker image its inside: /global/certbot-dns-plugins.json

Is it possible to add an override file, or an environtment variable that overrides in the json file the string you want, if the environment variable is defined?

Ramalama2 avatar Jul 08 '24 10:07 Ramalama2

I found a way to replace the content in the file:

docker exec -it npm sh -c "jq '.ovh.credentials = \"dns_ovh_endpoint = ovh-eu\\ndns_ovh_application_key = mytestppkey\\ndns_ovh_application_secret = mytestsecret\\ndns_ovh_consumer_key = mytestkey\"' /app/global/certbot-dns-plugins.json > /app/global/temp.json && mv /app/global/temp.json /app/global/certbot-dns-plugins.json"

It works and replaces the credentials in the ovh section. But in the GUI i have still the standard mDadM... credentials. like if the /global/certbot-dns-plugins.json doesnt have any effect. Even after restarting the image.

Does anyone know how to reread the /global/certbot-dns-plugins.json file? so that the changes of the file mirrors to the gui?

Ramalama2 avatar Jul 08 '24 10:07 Ramalama2

Issue is now considered stale. If you want to keep it open, please comment :+1:

github-actions[bot] avatar Apr 23 '25 02:04 github-actions[bot]