NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.13k stars 2.55k forks source link

Nginx Proxy Manager Issue in proxy hosts #2313

Open chiragnahata opened 1 year ago

chiragnahata commented 1 year ago

Hi, I am having two issues

  1. I am trying to get an ssl certificate in nginx proxy manager but unable to the follwoing is the error Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-4" --agree-tos --authenticator webroot --email "chiragnahata05@gmail.com" --preferred-challenges "dns,http" --domains "jellyfin.chiragnahata.ml" Saving debug log to /var/log/letsencrypt/letsencrypt.log Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org/. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

at ChildProcess.exithandler (node:child_process:399:12) at ChildProcess.emit (node:events:526:28) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

  1. I have added a *.chiragnahata.ml ssl certificate and trying to authenticate all my subdomains with the same one but it is not working. Please help as soon as possible.
the1ts commented 1 year ago

Confused, that domain "jellyfin.chiragnahata.ml" is being answered on both http and https by cloudflare, NPM is never seeing the letsencrypt traffic since cloudflare is doing a redirect to https (letsencrypt only works over http when checking for the challenge). What product of cloudflare's are you using on your domains?

tanmoysrt commented 1 year ago

@chiragnahata while you are generating letsencrypt certificate, do some changes in cloudflare dns

  1. Go to cloudflare and select your domain
  2. Go to DNS settings
  3. For all A records [also can be wildcard A records], change Proxy Status from Proxied to Dns Only

After generating certificate you can rollback those changes.

chiragnahata commented 1 year ago

Abled to make the template using https://github.com/Chirag-Nahata/Ngnix-Web-Template-for-Hestia-Control-Panel.

My two domains are working great but after that in all domains I am getting this error unknown.png It's happening for all domains.

Please help

chiragnahata commented 1 year ago

Abled to make the template using https://github.com/Chirag-Nahata/Ngnix-Web-Template-for-Hestia-Control-Panel.

My two domains are working great but after that in all domains I am getting this error unknown.png It's happening for all domains.

Please help

I have already setuped ssl. This is becuase my two domains are working good but not the others

github-actions[bot] commented 7 months ago

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