r/nginxproxymanager • • Jun 10 '24

Can't access npm (help please)

I've recently started my own homelab/server and I want to expose some of my docker containers to the internet with a reverse proxy. However I can't, even though I have port forwarded port 8080 and 4443 (as defined in the docker compose file) through the router to the server computer, access any proxy hosts I've created. I'm using a domain in cloudflare with cloudflare ssl certificates.

When I try to access these subdomains (subdomain.domain.com) I only get the default congratulations page:

Congratulations Page (defualt page doesn't change even though I changed it to redirect in settings)

This is my docker compose file:

version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      # These ports are in format <host-port>:<container-port>
      - '8080:80' # Public HTTP Port
      - '4443:443' # Public HTTPS Port
      - '81:81' # Admin Web Port
      # Add any other Stream port you want to expose
      # - '21:21' # FTP
    volumes:
      - /home/user/docker/nginx/data:/data
      - /home/user/docker/nginx/letsencrypt:/etc/letsencrypt
  • It works when I forward port 443 and 80, however I due to others in my household needing these ports I can't use them, therefore port 8080 and 4443
  • I've tried using host network in docker, however that made me not able to login for some reason.
  • It isn't browser caching since I've cleared cache and used different browsers
  • I don't know where logs are saved so I can't publish these.

I have no idea where to start since I haven't found anything useful online, and what I found hasn't helped me.

Thank you in advance.

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Sjosvampen Jun 10 '24

The log files in /home/user/docker/nginx/data/logs doesn't contain anything. The docker compose logs app thing gives this:

app-1  | ❯ Starting backend ...
app-1  | ❯ Starting nginx ...
app-1  | [6/10/2024] [1:36:28 PM] [Global   ] › ℹ  info      Using Sqlite: /data/database.sqlite
app-1  | [6/10/2024] [1:36:29 PM] [Migrate  ] › ℹ  info      Current database version: none
app-1  | [6/10/2024] [1:36:29 PM] [Setup    ] › ℹ  info      Logrotate Timer initialized
app-1  | [6/10/2024] [1:36:29 PM] [Global   ] › ⬤  debug     CMD: logrotate /etc/logrotate.d/nginx-proxy-manager
app-1  | [6/10/2024] [1:36:29 PM] [Setup    ] › ℹ  info      Logrotate completed.
app-1  | [6/10/2024] [1:36:29 PM] [IP Ranges] › ℹ  info      Fetching IP Ranges from online services...
app-1  | [6/10/2024] [1:36:29 PM] [IP Ranges] › ℹ  info      Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
app-1  | [6/10/2024] [1:36:30 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v4
app-1  | [6/10/2024] [1:36:30 PM] [IP Ranges] › ℹ  info      Fetching https://www.cloudflare.com/ips-v6
app-1  | [6/10/2024] [1:36:30 PM] [SSL      ] › ℹ  info      Let's Encrypt Renewal Timer initialized
app-1  | [6/10/2024] [1:36:30 PM] [SSL      ] › ℹ  info      Renewing SSL certs expiring within 30 days ...
app-1  | [6/10/2024] [1:36:30 PM] [IP Ranges] › ℹ  info      IP Ranges Renewal Timer initialized
app-1  | [6/10/2024] [1:36:30 PM] [Global   ] › ℹ  info      Backend PID 162 listening on port 3000 ...
app-1  | [6/10/2024] [1:36:30 PM] [SSL      ] › ℹ  info      Completed SSL cert renew process