Closed Basti-Fantasti closed 1 year ago
Update 1:
I now moved to a privileged LXC container but without any change in the result. Same behaviour, loading of login screen takes very long, and after entering the credentials I receive a page load error.
Based on the logs, this attempt stops at the npm, so I assume that there's something wrong with my current configuration. Does anyone have an example on howto setup npm properly to get it working again?
Here is my working nginx config. Maybe it helps you.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream rezepte.tux.lan {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name rezepte.tux.lan;
access_log /var/log/nginx/rezepte_access.log;
error_log /var/log/nginx/rezepte_error.log;
return 301 https://rezepte.tux.lan$request_uri;
}
server {
listen 443 ssl;
server_name rezepte.tux.lan;
access_log /var/log/nginx/rezepte_access.log;
error_log /var/log/nginx/rezepte_error.log;
client_max_body_size 100M;
# SSL
ssl_certificate /etc/ssl/certs/ssl-cert-tux.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-tux.key;
ssl_trusted_certificate /usr/local/share/ca-certificates/tux-root-wildcard1.crt;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
add_header Strict-Transport-Security "max-age=63072000" always;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off;
location / {
proxy_set_header Host $http_host;
proxy_pass http://rezepte.tux.lan;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /websockify {
proxy_pass http://rezepte.tux.lan;
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;
}
}
@boospy , thanks for your feedback. I assume you created the nginx config manually. Using npm I'm quite limited in adjusting the nginx configuration to my needs. I need to check if I can get a similar result.
I found the reason 😢 my router decided to not forward port 443 to my docker host anymore.
Port is now forwarded again and tandoor works like a charm 🥳
Thanks again
Issue
I've been using tandoor with docker-compose successfully behind npm now for quite a while.
Now I moved the installatation from my Proxmox base system to an unprivileged LXC container running docker. So far the rest of the docker containers seems to be running fine, but tandoor stopped working. When I open my tandoor url it takes a very long time to come to the login page. After entering my credentials it tries to load but always leads to a timeout.
I'm using the same npm nginx config as I have before:
So my question is, do I need to modify the nginx config, or can it be related to the fact, that docker is now running in an unprivileged lxc container and not on a native debian host as before?
I can locally access tandoor using the internal IP through http it works. Any help is appreciated
Best regards Bastian
Tandoor Version
1.4.10
OS Version
Debian 11 in unprivileged LXC container
Setup
Docker / Docker-Compose
Reverse Proxy
Nginx Proxy Manager (NPM)
Other
No response
Environment file
Docker-Compose file
Relevant logs