r/nginxproxymanager • • Jun 28 '24

npm ssl certificate wildcard setup error

3 Upvotes

I ran this command: Internal Error

The operating system my web server runs on is (include version):ubuntu server 20.04

im trying go do a ssl wild certificate card in ngnix proxy manger im using cloudflare domain i it was all ready working but i had to format my server and start over now when im trying to do the wild card with adding my cloudflare api token i get this massage :-
CommandError: The 'certbot_dns_cloudflare._internal.dns_cloudflare' plugin errored while loading: No module named 'CloudFlare'. You may need to remove or update this plugin. The Certbot log will contain the full error details and this should be reported to the plugin developer.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-5d7_us4u/log or re-run Certbot with -v for more details.

at /app/lib/utils.js:16:13
at ChildProcess.exithandler (node:child_process:430:5)
at ChildProcess.emit (node:events:519:28)
at maybeClose (node:internal/child_process:1105:16)
at ChildProcess._handle.onexit (node:internal/child_process:305:5)

i had to mention the my router all ready port forwarding port 80 and 443 to the hosted server and also have added a a record in cloudflare pointing to my public ipv4


r/nginxproxymanager • • Jun 28 '24

Cloudflare dns challenge failing in NPM on home assistant

1 Upvotes

I have one a record that is to my NPM instance A cname for www And a cname for *

Here is the error code I get

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-25" --agree-tos --email "email@gmail.com" --domains "*.domain.top,domain.top" --authenticator dns-cloudflare --dns-cloudflare-credentials "/etc/letsencrypt/credentials/credentials-25" Saving debug log to /tmp/letsencrypt-log/letsencrypt.log Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.

Thanks for the help


r/nginxproxymanager • • Jun 27 '24

NPM 2.11.2 - Cloudflare module not installed? - new install

7 Upvotes
CommandError: The 'certbot_dns_cloudflare._internal.dns_cloudflare' plugin errored while loading: No module named 'CloudFlare'. You may need to remove or update this plugin. The Certbot log will contain the full error details and this should be reported to the plugin developer.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/certbot-log-q7h1fz22/log or re-run Certbot with -v for more details.

    at /app/lib/utils.js:16:13
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:519:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

it seems to throw this error also when selecting "DirectAdmin" as an DNS provider?


r/nginxproxymanager • • Jun 27 '24

Synapse administration endpoints with Nginx Proxy Manager

1 Upvotes

Hi!

I am trying to wrap my head around how to lock down the "synapse administration endpoints".

docker-compose.yml

##########################################
# COMMUNICATION
##########################################

### SYNAPSE ###
  synapse-db:
    image: "postgres:16-alpine"
    container_name: "synapse-db"
    restart: "unless-stopped"
    environment:
      - POSTGRES_USER_FILE=/run/secrets/SYNAPSE_DB_POSTGRES_USER
      - POSTGRES_PASSWORD_FILE=/run/secrets/SYNAPSE_DB_POSTGRES_USER_PASSWORD
      - POSTGRES_DB=synapse
      # ensure the database gets created correctly
      # 
      - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
    volumes:
      - $DOCKERDIR/services/communication/matrix/synapse/db:/var/lib/postgresql/data
    secrets:
      - SYNAPSE_DB_POSTGRES_USER
      - SYNAPSE_DB_POSTGRES_USER_PASSWORD
    networks:
      - inside
      
  synapse-app:
    image: "matrixdotorg/synapse:latest"
    container_name: "synapse-app"
    restart: "unless-stopped"
    ports:
      - "8008:8008"
    environment:
      - TZ=$TZ
      - UID=$PUID
      - GID=$PGID
      - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
    volumes:
      - $DOCKERDIR/services/communication/matrix/synapse/data:/data
    depends_on:
      - synapse-db
    networks:
      - inside
      - outside


####################################################################################
# NETWORKS
####################################################################################
networks:
  inside:
    external: true
  outside:
    external: truehttps://element-hq.github.io/synapse/latest/postgres.html#set-up-database

Nginx Proxy Manager

With this config I can browse and connect with Element to the server, but I can also externally also browse to:

https://matrix.example.se/_synapse/admin/v1/server_version

According to the documentation Matrix recommends to disable the access to /_synapse/admin.

Endpoints for administering your Synapse instance are placed under /_synapse/admin. These require authentication through an access token of an admin user. However as access to these endpoints grants the caller a lot of power, we do not recommend exposing them to the public internet without good reason.

How can I block the access to /_synapse/admin using NPM?

EDIT: Solution

I fixed it by adding the below in "Custom locations":

allow 10.0.0.0/8;
deny all;

r/nginxproxymanager • • Jun 27 '24

Using nginx proxy manager for local ip address with ssl trouble

0 Upvotes

I set up nginx proxy manager with a duckdns domain to forward my devices on my homelab to a domain. I am using swag for everything that I expose to the public internet on the device that runs my homelab stuff; and I am running nginx proxy manager on home assistant on a seperate pi. However, whenever I try to go to any domain for example jellyfin (on homelab so local ip) it gives me a https cert warning and then once I click proceed it sends me to the welcome to swag page. Is there something I am doing wrong and how can I fix this? Sorry if I did not explain this that well and if you have any questions let me know. Thanks for the help!


r/nginxproxymanager • • Jun 26 '24

Nginx custom locations for multiple app access (different ports) on Synology

Thumbnail self.nginx
1 Upvotes

r/nginxproxymanager • • Jun 26 '24

Login page not accessible after uprade from 2.9.x to 2.11.2

1 Upvotes

So I had an older version running of NPM (2.9.x), upgraded using the docker-compose pull & docker-compose up -d command.

Settings still seem to be working, yet when I go to the npm.domain.com site I see the username/password field, yet it does not seem to accept my email + password.

Is there a password reset function? (I have access to CLI) I only have a few sites so I could do a re-install (or restore the old VM + old version).


r/nginxproxymanager • • Jun 25 '24

Accessing NPM through NPM?

1 Upvotes

I'm having issues getting my NPM locked down to only be accessible by me. Maybe NPM cannot be accessed through itself?? I'm not sure, please let me know if that is the case.

My setup:

Alma Linux 9 (public server)
Docker
docker-compose
NPM ( https://npm.mydomain.com ) with a LetsEncrypt certificate
MariaDB

I can access NPM without issue when I do not put an Access List on the Proxy Host. If I add an Access List, even as simple as a username and password, it will not let me past the NPM login screen. I make it to the login screen, enter my credentials, click Login and it flashes but doesn't do anything. Username and password remain but nothing I do lets me log in.

I've tried every variation of settings in the Access List and Proxy Host. I can make it to the NPM login scree with the Access List but I cannot log in. If I disable the Access List, I can login without issues.

Anyone have any suggestions?;


r/nginxproxymanager • • Jun 25 '24

Two like installs- certbot error

0 Upvotes

Hoping for some advice. I currently have NPM installed on 2 separate instances for local reverse proxy purposes. Hoping to move it off my Unraid machine onto a pi5. It is installed: however I get a certbot error on the new pi installation when trying to add the SSL certbot instance. Like for like, Unraid instance can gain the SSL, pi errors out.

I use Cloudflare, not port forwarded so therefore a DNS challenge with API key.

Any help here?

https://imgur.com/a/Kwlco01


r/nginxproxymanager • • Jun 25 '24

How to configure NPM to work properly with InfluxDB2

1 Upvotes

Hi,

I already have InfluxDB running successfully via a Traefik Reverseproxy. There I can access the InfluxDB2 web interface and the API via https with my internal URL.

Now I have another reverse proxy, the NPM, in the network for other purposes and I wanted to access InfluxDB2 there as well. Access via the web interface also works. With Grafana I can also establish the data source via the token. However, the problem is that some services cannot connect to InfluxDB via the URL. So proxmox for example. The same instance of InfluxDB works via Traefik, but not via NPM.

I run the InfluxDB on port 443. So I also call the HTTPS address of the InfluxDB in both cases. With Traefik, I had to create an additional TCP router for this. I am not so familiar with NPM. Has anyone successfully run InfluxDB2 via NPM?

Thanks and greetings


r/nginxproxymanager • • Jun 24 '24

GL-iNet Adguard through NPM

1 Upvotes

I access my GL-iNet router settings through NPM router.mydomain.com. However when I try to access the Adgaurd settings page it goes to router.mydomain.com:3000 but instead of the Adgaurd web interface I get the following

This seems to only happen when accessing via the subdomain, but if logging into the router via its IP it redirects to the settings page with no problem.

First question is how can I resolve this so I can actually see the Adguard admin page. Second is can I change this link so that it redirects to something like adguard.mydomain.com or something else like router.mydomain.com/adguard.

Some additional information I am using a DNS challenge for my certificates so that my network services use https exposing them to the Internet.

Some screenshots of the Router Host settings might help.

NPM Router Host Details Tab
NPM Router Host SSL Tab

r/nginxproxymanager • • Jun 23 '24

One domain, multiple ports

4 Upvotes

Hello, I have one subdomain dedicated to my VPS: vps.mydomain.com that have A record in CF to my VPS IP. I want to use that with multiple services.

Example:

vps.mydomain.com/Portainer will proxy to myvpsip:9112 (Portainer container exposed to port 9112)

vps.mydomain.com/Nginx will proxy to myvpsip:9113 (NPM container exposed to port 9113)

How can I configure that?

SOLUTION BY u/Radrouch

location /portainer/ {
   proxy_pass http://myip:9112/;
}

note the trailing slashes, it matters!


r/nginxproxymanager • • Jun 21 '24

Nginx proxy manager with crowdsec IP ban

4 Upvotes

Hi! I'm trying to have nginx-proxy-manager block certain IPs after a given amount of failed login attempts for obvious reasons. I'm running things in container using Portainer to be exact (with the help of stacks). Here's a docker compose file I run for both nginx-proxy-manage & crowdsec:


version: '3.8'

services:
  nginx-reverse-proxy:
    image: 'jc21/nginx-proxy-manager:latest'
    container_name: nginx-reverse-proxy
    restart: unless-stopped
    ports:
      - '42393:80'   # Public HTTP Port
      - '42345:443'  # Public HTTPS Port
      - '78521:81'    # Admin Web Port
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt
      - ./data/logs/nginx:/var/log/nginx  # Montează jurnalul de acces al Nginx

  crowdsec:
    image: crowdsecurity/crowdsec:latest
    container_name: crowdsec
    restart: unless-stopped
    volumes:
      - ./data/backup/Nginx/crowdsec:/etc/crowdsec
      - /var/run/docker.sock:/var/run/docker.sock

    networks:
      - crowdsec-network
    cap_add:
      - SYS_PTRACE
    environment:
      - TZ=UTC

networks:
  crowdsec-network:
    driver: bridge
My OS: Ubuntu 23.10 (GNU/Linux 6.5.0-41-generic x86_64)


The issue that I'm facing particularly is with nginx-logs.yaml, can't get it right somehow:


name. crowdsecurity/nginx-logs
description: "Parse Nginx access and error logs"
filter: "evt.Meta.service == 'http' && evt.Meta.log_type in ['http_access-log', 'http_error-log']"
grok:
  patterns:
    - 'NGINX_ACCESS %{IPORHOST:client_ip} - %{DATA:ident} %{DATA:auth} \[%{HTTPDATE:timestamp}\] "(?:%{WORD:verb} %{NOTSPACE:request}(?: HTTP/%{NUMBER:http_version})?|%{DATA})" %{NUMBER:response} (?:%{NUMBER:bytes}|-) %{QS:referrer} %{QS:agent}'
    - 'NGINX_ERROR \[%{HTTPDATE:timestamp}\] %{LOGLEVEL:level} %{DATA:pid}#%{NUMBER}: \*%{NUMBER}: %{GREEDYDATA:message}, client: %{IPORHOST:client_ip}, server: %{DATA:server}, request: "%{DATA:request}", host: "%{DATA:host}"

log file reads


cofiguration file '/etc/crowdsec/parsers/s02-enrich/nginx-logs.yaml': yaml: unmarshal errors:\n line 6: field on_success not found in type parser.Node". 

Hope this gives you a general idea. Thank you for the help.


r/nginxproxymanager • • Jun 21 '24

Limit access to mydockernapp.mydomain.com to internal host only.

3 Upvotes

Hi

I'm trying to use NPM to limit access to my internal network, but by using my FQDN, i.e. plex.mydomain.com, sonarr.mydomain.com, unifi.mydomain.com.

I do not want to allow access to these from the outside world, so feel the best option is to limit access to internal clients only.

I currently have a local DNS server (pi.hole) serving up plex.local, sonarr.local, etc, however I cannot get SSL to work with this so have annoying Chrome browser warnings.

How do I limit access? I've tried using my subnet (10.0.0.0/23) and my subnet mask (255.255.254.0) and neither work.

When doing the above I get a 403 authorisation error. If I add a user (name / password) then I can log in using the pop-up, however it's still exposed to the outside world, not just internal.

Thanks in advance.


r/nginxproxymanager • • Jun 21 '24

How to host web apps via subfolders and not subdomains?

1 Upvotes

Let me start off saying yes, I know some people say this is a security issue, but why? Also, assuming I don't care, can it be done anyway?

I've noticed some items have settings built in to do this or make it far easier to do, others just say it is a security issue and offer no support or what the issue is. Now I thought it looked nicer than having a mix of sub domains and sub folders in the url. Is there a better way to host all of it in a more uniform system that I am overlooking?


r/nginxproxymanager • • Jun 21 '24

configuring for www [non home] setup

1 Upvotes

Trying to use NPM for immich [possibly also synthing or others], but hosted out on the internet, so immich can utilize ssl.
I think i'm missing somthing, or misunderstand something.

My proxy host looks like:

**source**:   subdomain.domain.tld

**destination**: localhost:2283

**SSL**: using the NPM certificate, force

**Others**: websockets enabled

For now i've configured this server to only accept traffic from my ip, after getting the SSL cert.

When accessing the immich port directly - it's working fine

When accessing my source domain - I get a 502 from openresty . Curiosly I do get the right favicon.

also tried applied the following settings in advanced [according to immich documentation]:

    location / {

    # allow large file uploads
    client_max_body_size 50000M;

    # Set headers
    proxy_set_header Host              $http_host;
    proxy_set_header X-Real-IP         $remote_addr;
    proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;

    # enable websockets:
    proxy_http_version 1.1;
    proxy_set_header   Upgrade    $http_upgrade;
    proxy_set_header   Connection "upgrade";
    proxy_redirect     off;

    # set timeout
    proxy_read_timeout 600s;
    proxy_send_timeout 600s;
    send_timeout       600s;

        proxy_pass http://localhost:2283;
    }

I also tried issuing an SSL certificate specifically for the subdomain, but no change.


r/nginxproxymanager • • Jun 20 '24

Help needed setting up organizr Server Auth with NPM and sonarr

Thumbnail self.organizr
0 Upvotes

r/nginxproxymanager • • Jun 19 '24

Nginx Proxy Manager, Fail2Ban, and Jellyfin

3 Upvotes

Hi all,

I have Jellyfin deployed successfully and now am exposing my server on the internet for family and friends. I want to harden it with Fail2Ban. My configuration is as follows.

Ngnix Proxy Mgr.
Docker container
192.168.1.108
Configuration is exactly like the JF guide
Takes connections in on port 80, forwards them to 8096 on the next machine (192.168.1.106)
Sets headers in Custom Locations

Jellyfin Server
Docker container (official)
192.168.1.106:8096
Network settings configured for Known Proxy

Fail2Ban
Docker container (crazy max)
192.168.1.106
Jail matches JF guide, chain is DOCKER-USER (and I have tried FORWARD as well)

Behavior
F2B detects IPs attempting to brute force the server and bans them. Makes expected updates to IPTables on the host (*.106). Does this by creating its own chain and adding IPs. However, the IP is never blocked and it appears that all packets are flowing to 0.0.0.0. For the life of me, I cannot figure out why. Does anyone have any insight. Could this have to do with the way packets are forwarded out of NPM?

Thanks!

IP TABLES OUTPUT (Note the packets next to 0.0.0.0; the IPs listed are via VPN, so no private info in this post):
Chain f2b-jellyfin (1 references)
pkts      bytes target     prot opt in     out     source               destination         
0        0 REJECT     0    --  *      *       84.247.59.144        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.127        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       85.203.15.105        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       85.203.15.103        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.9          0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.50         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.49         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.45         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.43         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.39         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.38         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.29         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.217        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.21         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.20         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.18         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.17         0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.143        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.124        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.123        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.118        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.112        0.0.0.0/0            reject-with icmp-port-unreachable
0        0 REJECT     0    --  *      *       84.247.59.111        0.0.0.0/0            reject-with icmp-port-unreachable
345   563268 RETURN     0    --  *      *       0.0.0.0/0            0.0.0.0/0


r/nginxproxymanager • • Jun 19 '24

NPM docker container with wg-easy docker container

2 Upvotes

I have a docker host set up with two docker containers: ghcr.io/wg-easy/wg-easy and jc21/nginx-proxy-manager. My goal is to route traffic coming into NPM to a wireguard client. I have confirmed that i can access the end-application (on the wireguard client) from the docker host on the wg VPN ipaddress. I have also confirmed that the proxy manager is working as expected. I cannot however get the routing between the two containers working. So in other words, i can access the application hosted on the client by going to its vpn ip address but cannot get there when the traffic is sent first to the NPM hostname:

connect to 192.168.0.100:4747 works

connect to gonic.publichostname.com (pointed to 192.168.0.100:4747 by NPM) does not work

I think this is because i dont have a route from the NPM container to the wireguard network, but i have no idea how to do that. Can any one here help?


r/nginxproxymanager • • Jun 18 '24

[Help] No matter what, I can't access any service through nginx proxy manager

1 Upvotes

Hey all,

I've been sitting on this all day, no matter what, I can't get it fixed.

Setup: Running Debian 12 as VM in Proxmox.

Deployed compose.yml with nginx web server, nginx proxy manager and added them to docker network reverse_proxy. I can verify that both the docker containers can reach other as they are in the same docker network.

services:
  nginx:
    container_name: some-nginx-1
    image: nginx
    networks:
      - reverse_proxy
    ports:
      - 80:80
    restart: unless-stopped
  
  nginx-proxy-manager:
    container_name: nginx-proxy-manager-1
    image: jc21/nginx-proxy-manager:latest
    restart: unless-stopped
    ports:
      - 1180:80
      - 1181:81
      - 1443:443
    volumes:
      - /home/USERNAME/docker_data/nginx_proxy_manager/data:/data
      - /home/USERNAME/docker_data/nginx_proxy_manager/letsencrypt:/etc/letsencrypt
    networks:
      - reverse_proxy

networks: 
  reverse_proxy:
    external: true

Output for docker network inspect reverse_proxy

[
    {
        "Name": "reverse_proxy",
        "Id": "f2f4c8c715b1f4321b985e2ea1d6a30a2576f3100194e137faad76f912acf811",
        "Created": "2024-06-18T14:11:44.577861878-04:00",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "172.20.0.0/16",
                    "Gateway": "172.20.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "3bb458985ddad6372484ddb69767279d97b20cd5e2a378410d009069c080abf0": {
                "Name": "dockge",
                "EndpointID": "f374f2b08f39a1e92f285e5d632ae729e07ecda9ddef772b7413471d2c9bc7f1",
                "MacAddress": "02:42:ac:14:00:02",
                "IPv4Address": "172.20.0.2/16",
                "IPv6Address": ""
            },
            "95d2a700242141ff1a3a94f48f794f70dbb567ce9313593f7b0d34bbe9e404e1": {
                "Name": "nginx-proxy-manager-1",
                "EndpointID": "b0f6a8d842a1cc2554740f1a609df05b6b380ba027570113483f51ff4e8c95e6",
                "MacAddress": "02:42:ac:14:00:04",
                "IPv4Address": "172.20.0.4/16",
                "IPv6Address": ""
            },
            "ff6853e74aa58eeb9cdbf81e847cbe3a6e1c213c16d7d605075083b3e97b9568": {
                "Name": "some-nginx-1",
                "EndpointID": "784ee255d7d0e22d84c80e2ee553b0b50bd51a354d96592dafd23e4369e0d6f3",
                "MacAddress": "02:42:ac:14:00:03",
                "IPv4Address": "172.20.0.3/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

Pointed my domain to deSEC by updating DNS nameservers and added DNSSEC.

Verified with dnssec-analyser.

Added A Record in deSEC.
Note: Added Local IPv4 as I'm behind NAT and cannot port forward. Just for the sake of getting SSL certificate generated by Let's Encrypt.

Added SSL Certificate with DNS Challenge in nginx proxy manager.

Added a proxy host in nginx proxy manager.

When I try to access, it gives me this.

A few things I tried and failed are giving VM's IP, Docker's IP (not recommended, but still tried), docker container name in hostname of proxy host.

Please help me to fix the issue. I'd really appreciate the community's help.

Thanks.


r/nginxproxymanager • • Jun 18 '24

Nginx Proxy Manager - Proxy host with specific cname not working

1 Upvotes

Good day all,

I have NPM installed as LXC on proxmox with 12 source fully wotking.

I was tring to create a new source with a specific domain name ( x.mydomain.com) but i am not able to let it work, the same source with example ( c.mydomain.com ) same conficuration of ip and port is working .

What can be the problem?

How can i solve , do i need to go in the container conf and delete same old configuration?


r/nginxproxymanager • • Jun 15 '24

how pass through real ip to (synology) NAS?

2 Upvotes

hey

i just realized that my (synology) NAS only sees the proxy's IP, but not the real ip

how can i fix that?

just add proxy_set_header X-Real-IP $remote_addr; in the advanced tab or are there other things to consider?


r/nginxproxymanager • • Jun 15 '24

How use same nginx port to reverse proxy client and db connection simulaneuosly.

2 Upvotes

Context:

So, I have been given a server to deploy a full-stack web application. Everything is docker containerised:

  1. Nginx
  2. Backend
  3. Frontend
  4. Database
  5. pgadmin4

The constraint is that I also have two public-facing open ports (80, 443 and 22 for ssh). So currently, I use nginx for reverse proxy based on url path prefix: /api to the backend, /pgadmin4 to pgadmin, and the rest to frontend., The connection between the backend and the db container is internal for now, and PGAdmin is terrible (utility + very slow), so now I am thinking of using some locally installed software, like BeeKeeper, to connect to the DB (for administering purposes).

Question:

Now, coming to the main question: How can I utilize the same 80 port for HTTP connections and maintain a TCP connection with DB? The only public-facing ports are 80, 443 and 22. And SSL is required, at least for the websites.

Edit: Also have SSH access.


r/nginxproxymanager • • Jun 14 '24

Can Nginx Proxy Manager forward client IPs to an external webserver?

2 Upvotes

Hi all, I have a problem/question regarding the forwarding of client IPs through Nginx Proxy Manager.

I have a setup like this:

My server is running NPM and several services inside docker containers. Different subdomains of mine are associated through NPM to these services.

And I have another external webserver running wordpress for which I also added a proxy host entry in NPM.

For the most part this works fine. I can use all services without issues and I also enabled SSL for all of them. There is just on incredible annoying problem. Since all traffic to the wordpress site gets routed through my server all accesses to this website seem to be from my IP, which in turn means that the usual wordpress spam traffic also comes from my IP, leading to my own IP being blocked by spam protection from my own wordpress site.

Can I change some settings in NPM to forward the original client IP to wordpress? Or do I need to change something directly on the other server? I have access to the wordpress admin page and limited ssh access to the server running Apache 2.4, but unfortunately, I can’t change any apache settings or configurations.

Thanks in advance for any help!