Thanks for the reminder.
I use the "Nginx-letsencrypt" docker and I managed to get it to work like this:
nginx/site-confs/default
upstream backend {
# the netdata server
server 192.168.2.130:19999;
keepalive 64;
}
server {
listen 80;
listen 443 ssl http2;
# server_name mysecretdomain.com www.mysecretdomain.com;
include /config/nginx/proxy.conf;
include /config/nginx/auth.conf;
ssl_certificate /config/keys/fullchain.pem;
ssl_certificate_key /config/keys/privkey.pem;
ssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers 'ECDHE-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
ssl_prefer_server_ciphers on;
location / {
root /config/www;
index index.html index.htm index.php;
}
# This exposes the unraid GUI, not a good idea !
# location / {
# proxy_pass http://192.168.2.130/;
# proxy_buffering off;
# }
location /coach {
proxy_pass http://192.168.2.130:5050/coach;
}
location /sonarr {
proxy_pass http://192.168.2.130:8989/sonarr;
}
location ~ /netdata/(?<ndpath>.*) {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://backend/$ndpath$is_args$args;
proxy_http_version 1.1;
proxy_pass_request_headers on;
proxy_set_header Connection "keep-alive";
proxy_store off;
}
}
the URL needs to have a trailing /, I couldn't work that out yet.
Hope it works for you.
there are also official ngnix, apache, lighttpd and caddy examples
https://github.com/firehol/netdata/wiki/Running-behind-nginx
https://github.com/firehol/netdata/wiki/Running-behind-apache
https://github.com/firehol/netdata/wiki/Running-behind-lighttpd
https://github.com/firehol/netdata/wiki/Running-behind-caddy
Brilliant, that worked! Thank you!