User Tools

Site Tools


netdata

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
netdata [2017/09/11 12:04] – luke7858netdata [2017/09/11 14:52] (current) – luke7858
Line 40: Line 40:
 tcp6       0      0 :::19999                :::*                    LISTEN      10578/netdata        tcp6       0      0 :::19999                :::*                    LISTEN      10578/netdata       
 </sxh> </sxh>
 +\\
 +\\
 +<code>
 +server {
 +    listen 80;
 +    server_name netdata.domain.com www.netdata.domain.com;
 +    return 301 https://$host$request_uri;
 +}
 +server{
 +    listen 443;
 +    server_name netdata.domain.com www.netdata.domain.com;
 +    access_log /var/log/nginx/netdata.error_logs;
 +    error_log /var/log/nginx/netdata.access.log;
 +
 +
 +    ssl on;
 +    ssl_certificate /etc/letsencrypt/live/sitename/fullchain.pem;
 +    ssl_certificate_key /etc/letsencrypt/live/sitename/privkey.pem;
 +    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #used to prevent poodle attacks for outdated protocols
 +
 +location / {
 +        proxy_pass         http://127.0.0.1:19999;
 +        auth_basic            "Authentication PART1!!";
 +        auth_basic_user_file  "/var/www/.htpasswd_netdata";
 +}
 +}
 +</code>
netdata.1505131468.txt.gz · Last modified: (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki