...
Code Block |
---|
server { server_name kibana kibana.jmehan.com; location / { proxy_pass http://192.168.1.60:5601/; auth_basic "Administrator's Area"; auth_basic_user_file /etc/nginx/conf.d/htpasswd; } } |
Supporting Sites that use websockets
Code Block |
---|
server {
server_name homebridge homebridge.jmehan.com;
location / {
proxy_pass http://192.168.1.60:8089/;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
}
} |
Customized Dockerfile
The following Dockerfile adds certbot and apache2-utils to our nginx-reverse-proxy image.
...