Docker compose Nginx Proxy Manager Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

as stated on the other forum post, if you go with a proxy software, you need to disable https on your web server hosting nextcloud and you need to change away from port 80 to 81. Your proxy will handle ssl and forward all request to nextcloud. usually it is not needed to have ssl active on any of your apps as all this should be handled by the proxy. Only thing you might need to check of your apps are able to work an a sub folder like

Code: Select all

https://ddns.com/nextcloud
https://ddns.com/emby
https://ddns.com/plex
https://ddns.com/ombi
This way you would need a single certificate only. Usually your apps should have a wiki where it should describe how to use sub folder. Another option is to use sub domains. Something like this

Code: Select all

https://emby.ddns.com
https://plex.ddns.com
You could mix it as well. All depends on your apps and how you could configure them
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 for help.
przemko
Posts: 252
Joined: Sun Mar 15, 2020 5:40 pm

Re: Docker compose Nginx Proxy Manager

Post by przemko »

Hi, @Joulinar I think You're the only one who can help me :D
Please don't be mad.

I disable https on my Dietpi:

Code: Select all

lighttpd-disable-mod dietpi-https dietpi-hsts dietpi-https_redirect
I uninstall certbot.

I forward ports on router like this:

Code: Select all

external port:           host/IP           internal port:      protocol:
80-80                            192.168.0.19           8080-8080          TCP
443-443                        192.168.0.19           4443-4443          TCP
I install Nginx Proxy Manager like this:

Code: Select all

version: '3'
services:
  nginx-proxy-manager:
    image: jlesage/nginx-proxy-manager
    network_mode: host
    volumes:
      - "/home/dietpi/.config/nginx-proxy-manager:/config:rw"
I change port for zigbee2mqtt:

Code: Select all

 zigbee2mqtt:
    container_name: zigbee2mqtt
    restart: unless-stopped
    image: koenkk/zigbee2mqtt
    volumes:
      - ./zigbee2mqtt-data:/app/data
      - /run/udev:/run/udev:ro
    ports:
      - 8081:8080
    environment:
      - TZ=Europe/Berlin
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
I install Petio:

Code: Select all

version: "3"

networks:
  petio-network:
    driver: bridge

services:
  petio:
    image: ghcr.io/petio-team/petio:latest
    container_name: "petio"
    hostname: petio
    ports:
      - "7777:7777"
    networks:
      - petio-network
    depends_on:
      - mongo
    user: "1000:1000"
    environment:
      - TZ=Etc/UTC
    volumes:
      - /home/dietpi/.config/petio/config:/app/api/config
      - /home/dietpi/.config/petio/logs:/app/logs

  mongo:
    image: mongo:latest
    container_name: "mongo"
    hostname: mongo
    ports:
      - "27017:27017"
    networks:
      - petio-network
    user: "1000:1000"
    volumes:
      - /home/dietpi/.config/petio/db:/data/db
I remove also from my

Code: Select all

/var/www/nextcloud/config/config.php
that /nextcloud :

Code: Select all

'overwrite.cli.url' => 'https://myserver.ddns.net/nextcloud',
The strange situation is my Nextcloud works now on SSL but other apps don't.
Can You help me with that?
Regards
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

you would need to create a proxy definition for each application in NPM
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 »

Thanks, I also get some info that I need to make New Proxy Host for every app in NPM. I need to make subdomains on no-ip for every app like:
- homeassistant.myserver.ddns.net
- emby.myservernas.ddns.net
etc.
But I cannot find option in no-ip.com to make that subdomains. Do You know something about that?
Regards.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

you can use sub folder as well on NPM. See my PM. Just search the web on how to use sub folder
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 »

But I get info from Home Assistant suppport that I cannot use subfolders for that :/
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Docker compose Nginx Proxy Manager

Post by Joulinar »

in this case you need to use sub domain for HA application

How to manage additional sub domain, maybe contact NoIP directly.
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 »

Thanks.
Post Reply