ZoeyVid / NPMplus

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://hub.docker.com/r/zoeyvid/npmplus
MIT License
406 stars 15 forks source link

tls/ssl cert issue #988

Closed Raxiel1987 closed 1 month ago

Raxiel1987 commented 1 month ago

after switching from npm "standard" to npmplus i got some troubles renewing the certs or obtain new. if i check network avaibility i get this error:

There is no server available at this domain. Please make sure your domain exists and points to the IP where your NPM instance is running and if necessary port 80 is forwarded in your router.

the port is open and working, if i try with the standard npm it works.. so this must be something i miss from npmplus this is my compose file:

services:
  npmplus:
    container_name: npmplus
    image: zoeyvid/npmplus
    restart: always
    network_mode: host
    volumes:
      - "/portainer/Files/AppData/Config/Nginx-Proxy/data:/data"
#      - "/var/www:/var/www" # optional, if you want to use it as webserver for html/php
    environment:
      - TZ=Europe/Rome # set timezone, required

i deleted the volumes lines # - "/portainer/Files/AppData/Config/Nginx-Proxy/letsencrypt:/etc/letsencrypt" # Only needed for first time migration from original nginx-proxy-manager to this fork, after the first starts

now i can't renew/add new certificates this supposed to open port 80 and 443, or enable in npmplus

Zoey2936 commented 1 month ago

Do you use ufw?

Raxiel1987 commented 1 month ago

yes it's on portainer and the npm works well on firewall the ports are ok

Zoey2936 commented 1 month ago

So you have the ports open in ufw?

Raxiel1987 commented 1 month ago

So you have the ports open in ufw?

yes sure

Raxiel1987 commented 1 month ago

it is on proxmox lcx container, with npm "standard" lcx works, when i change to the new npm plus lcx not work

Zoey2936 commented 1 month ago

Please run docker on the host system and try again

Raxiel1987 commented 1 month ago

Please run docker on the host system and try again

what do you mean run docker on host system? i duplicated the old npm standard lcx ( just for backup purpose) then in the new lcx container i swapped the npm to npm plus, all is working, the only things that don't work is the certbot

Zoey2936 commented 1 month ago

Don't use lxc. Why do you run a virtualisation Software (docker) in another one (lxc)? Either use docker OR lxc

Raxiel1987 commented 1 month ago

i mean.. container.. i run docker in containers on proxmox.. npm "standard" is able to acquire new ssl cert on the same config :D, but i want to use npm plus for some extra updates and security

Zoey2936 commented 1 month ago

can you open your websites normally?

Raxiel1987 commented 1 month ago

yes.. all websites working normally the only issue is for get a new certficate for another domain

i tried to restore the "old" backup with npm standard, tried to get a certificate for that domain, and it's works

Zoey2936 commented 1 month ago

What happens if you open the domain without a cert yourself?

Raxiel1987 commented 1 month ago

error.. but... i've just discovered a fact: could npm plus have a less frequent dns refresh interval? because ( a domain registered 3 hrs ago) now seems to be reached if i test but the www part still not: SCR-20240731-nmdn

Zoey2936 commented 1 month ago

The check is done using an external service

Zoey2936 commented 1 month ago

What error?

Raxiel1987 commented 1 month ago

nvm.. i think the problem is that the domain is too "new" i've registered about 3 hrs ago and maybe for some reason npm plus can't elaborate dns quick, so i wait a couple of hours and check again later

Raxiel1987 commented 1 month ago

i tried to renew some other certs of others domains i have and they works..

Zoey2936 commented 1 month ago

if it works please close the issue then