Docker compose Nginx Proxy Manager Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
naddel81
Posts: 113
Joined: Sun Jul 21, 2019 12:54 pm

Re: Docker compose Nginx Proxy Manager

Post by naddel81 »

I installed docker/docker compose/portainer and NPM now in a new virtual machine. after adding the new domain (CNAME) it gives me "Placeholder page
The owner of this web site has not put up any web pages yet. Please come back later."

But it should redirect to my plex-server running on port 32400.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 113
Joined: Sun Jul 21, 2019 12:54 pm

Re: Docker compose Nginx Proxy Manager

Post by naddel81 »

thanks for your help. made my day. HTTP access works now.

But I cannot get SSL to work:


Image
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

you need to forward port 80/443 from your router to NPM
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 113
Joined: Sun Jul 21, 2019 12:54 pm

Re: Docker compose Nginx Proxy Manager

Post by naddel81 »

done. otherwise NPM would not allow plex to be redirected. plex works fine outside the network using the reverse proxy (plex remote access DISABLED).
but SSL will just not activate.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

maybe you would need to check with NPM guys what the issue might be and what logs you could look into.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
naddel81
Posts: 113
Joined: Sun Jul 21, 2019 12:54 pm

Re: Docker compose Nginx Proxy Manager

Post by naddel81 »

works now, started from scratch. also tautulli (plex.py) says insecure, I guess this is because the redirection from NPM to plex media server is HTTP, the way from NPM to the client is HTTPS, I guess.
Attachments
insecure plex.png
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: Docker compose Nginx Proxy Manager

Post by przemko »

Hi, @Joulinar sorry I still bother You on that forum :)
I find that thread and I want to try Nginx Proxy Manager with my installations. I read something about Nginx Proxy Manager but still have some doubts.
My installations looks like that:
1. Nextcloud, Emby, Plex, home Assistant, Lets encrypt installed with dietpi-software.
2. Hostname with no-ip.com and use SSL for Nextcloud, Emby and Plex.
3. Mosquitto, zigbee2mqtt installed with docker-compose.yml

Code: Select all

version: '3.8'
services:
  mqtt:
    image: eclipse-mosquitto:2.0
    restart: unless-stopped
    volumes:
      - "./mosquitto-data:/mosquitto"
    ports:
      - "1883:1883"
      - "9001:9001"
    command: "mosquitto -c /mosquitto-no-auth.conf"

  zigbee2mqtt:
    container_name: zigbee2mqtt
    restart: unless-stopped
    image: koenkk/zigbee2mqtt
    volumes:
      - ./zigbee2mqtt-data:/app/data
      - /run/udev:/run/udev:ro
    ports:
      - 8080:8080
    environment:
      - TZ=Europe/Berlin
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
4. Nginx Proxy Manager installed with docker-compose.yml:

Code: Select all

version: '3'
services:
  nginx-proxy-manager:
    image: jlesage/nginx-proxy-manager
    ports:
      - "8181:8181"
      - "8080:8080"
      - "4443:4443"
    network:
      - host
    volumes:
      - "/home/dietpi/.config/nginx-proxy-manager:/config:rw"
5. I install Overseerr with docker-compose:

Code: Select all

---
version: '3'

services:
  overseerr:
    image: sctx/overseerr:latest
    container_name: overseerr
    environment:
      - LOG_LEVEL=debug
      - TZ=Europe/Warsaw
    ports:
      - 5055:5055
    volumes:
      - /home/dietpi/.config/overseerr:/app/config
    restart: unless-stopped
6. I have now ports forwarded on my home router like this:
External port: internal Host/IP: Internal port: Protocol: Enabled:

https://pasteboard.co/CxLcjK1vdvn8.jpg

I have few question with that:
1. Is it safe for my installations to set all traffic with Nginx Proxy Manager?
2. How to set ports forwarding?
3. If I forward ports 80 and 443 only for Nginx Proxy Manager do I have to delete forwarding for all other ports from my router?
4. Will my domain name myserver.ddns.net from no-ip and my SSL certificate I already have will handle all that (Nextcloud, Emby, Plex, Overseerr, Home Assistant)?
5. How to set in Nginx Proxy Manager:
A) New Proxy host
- Details tab:
Domains name:
myserver.ddns.net
schema: https
forward hostname/IP: 192.168.0.19
forward port: ....?
- Custom locations?
add custom locations for all my apps? Or every app as One New Proxy Host?
- SSL tab
(don't see my actual SSL certificate)
- generate new certificate? Can I use new certificate for my hostname myserver.ddns.net if I already have SSL on no-ip?

I hope You not mad at me :)
Regards.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

Not sure why but you are not using the original docker image for NPM as this would be jc21/nginx-proxy-manager https://nginxproxymanager.com/

The one you are using I never tested and not sure how it is working. At least you would need to forward port 80/443 on your router to port 8080/4443 on the system running the docker image. As well all other port forwarding could be deleted as your proxy should handle the access for all application you like to share with the internet.

As already stated on the other forum post, you should remove ssl handling from your web server and your apps, as this will be a task of the proxy. Inside the proxy you could reuse your DDNS domain and recreate your certificates. There is no need to transfer certificates.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: Docker compose Nginx Proxy Manager

Post by przemko »

OK, thanks.
I will remove that docker image and install original. Then I don't have to do anything with my ports 80 and 443? Just delete port forwarding for Emby and Plex?
Then Remove lets encrypt with dietpi-software and remove SSL configs in apps dashboard: in Emby and Plex? How to do that in Nextcloud?
Regards.
Post Reply