Well, one thing that doesn't really work nicely with NPM is Snikket.
Best Reverse Proxy for Cloudflare
I've used nginx proxy manager as a reverse proxy for a while now and want to switch because some set ups don't work well with it. Tried nginx as a reverse proxy but seems kinda complicated and I just don't really like it... I've heard good things about Caddy and how it automatically does the certs for you but heard it doesn't mesh well with Cloudflare proxy or something along those lines. Caddy is definitely a contender.
What's a good reverse proxy for a set up using Cloudflare?
Also, a bit off-topic, but is Cloudflare's proxy really needed? I heard it's insecure to self host sites without Cloudflare because you're exposing your ip address and leaving yourself vulnerable but is it really bad to self host without Cloudflare?
services:
app:
image: 'jc21/nginx-proxy-manager:latest' restart: unless-stopped
ports: - '325:80'
- '81:81' - '326:443'
volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt
I mean I got them portmapped to other ports so... I dunno
apparently it's my native nginx.... wtf. I used
sudo systemctl stop nginx
And the websites that had the nginx error went down. I don't know how this could even happen? My containers use their own nginxes??? Maybe the mix of native nginx and docker nginx is messing everything up, if I can't find a solution I'm probably gonna nuke my native nginx and use docker nginx for all of my nginx needs
nginx proxy manager's in a docker container reverse proxying my nginx docker containers, and native nginx is reverse proxying snikket container because nginx proxy manager doesn't go well with snikket.
Here's the nginx config for my snikket.
server { # Accept HTTP connections listen 80;
listen [::]:80;
server_name chat.allinuxuser.xyz;
server_name groups.chat.allinuxuser.xyz;
server_name share.chat.allinuxuser.xyz;
location / { proxy_pass http://localhost:5080/; proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# This is the maximum size of uploaded files in Snikket
client_max_body_size 104857616; # 100MB + 16 bytes }
} server { # Accept HTTPS connections
listen [::]:443 ssl; listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/allinuxuser.xyz-0001/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/allinuxuser.xyz-0001/privkey.pem;
server_name chat.allinuxuser.xyz; server_name groups.chat.allinuxuser.xyz;
server_name share.chat.allinuxuser.xyz;
location / {
proxy_pass https://localhost:5443/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# REMOVE THIS IF YOU CHANGE `localhost` TO ANYTHING ELSE ABOVE
proxy_ssl_verify off;
proxy_set_header X-Forwarded-Proto https;
proxy_ssl_server_name on;
# This is the maximum size of uploaded files in Snikket
client_max_body_size 104857616; # 100MB + 16 bytes
# For BOSH and WebSockets
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_read_timeout 900s;
}
}
Here's the docker-compose for one of the sites i'm running that's been affected by the weird nginx error.
version: "3" services:
client: image: nginx
restart: unless-stopped ports:
- 5973:80 volumes:
- ./allinuxuser-website:/usr/share/nginx/html
Please tell me if there's any more logs I need to provide.
tcp LISTEN 0 4096 0.0.0.0:9443 0.0.0.0:* users:(("docker-proxy",pid=1550,fd=4)) tcp LISTEN 0 511 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=2511847,fd=6),("nginx",pid=2511846,fd=6),("nginx",pid=2511845,fd=6),("nginx",pid=2511844,fd=6),("nginx",pid=2511843,fd=6)) tcp LISTEN 0 511 0.0.0.0:5443 0.0.0.0:* users:(("nginx",pid=2540528,fd=6),("nginx",pid=2540399,fd=6)) tcp LAST-ACK 0 1 192.168.0.107:443 91.84.87.137:40016 tcp LISTEN 0 4096 [::]:9443 [::]:* users:(("docker-proxy",pid=1560,fd=4)) tcp LISTEN 0 511 [::]:443 [::]:* users:(("nginx",pid=2511847,fd=5),("nginx",pid=2511846,fd=5),("nginx",pid=2511845,fd=5),("nginx",pid=2511844,fd=5),("nginx",pid=2511843,fd=5)) tcp LISTEN 0 511 [::]:5443 [::]:* users:(("nginx",pid=2540528,fd=7),("nginx",pid=2540399,fd=7))
I don't know how to even interpret this, I know it says nginx but which nginx?? I got like 4 nginx web servers running
Weird Nginx Error???
Good morning/night/evening/the time for you right now, ever since I set up Snikket, my web pages other than Snikket's have been displaying nginx 404 not found errors. I can access the website locally but when I go to the domain name it pops up the error. When I go to localhost:443 it also shows the nginx not found 404 thing so I think that's where my other website pages are getting the error from, but I never port fowarded port 443, at least I don't think so. I use the standard nginx reverse proxy for Snikket, and Nginx Proxy Manager for my other web pages. I really hope someone can help me. Thank you very much in advance.
Thanks! Turns out nginx proxy manager was using 443. Changed the port and now nginx throws no errors!
Nginx Error


Hello, I've been messing around with prosody and snikket and that means I've been messing around with nginx. I was having some issues so I decided to uninstall nginx and after anothet round of messing around with snikket, decided to install nginx again. It showed this error and I don't really know what to do, since I'm really not that good with self-hosting yet. Please help. I will give more info as needed.