Skip to content

Commit

Permalink
Create netdata
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Jul 5, 2024
1 parent a8c45f9 commit ec9fdba
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/Server_Config/netdata
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Netdata

## Install



## Nginx configuration

Create a user and password file
```
sudo apt-get install apache2-utils
sudo htpasswd -c /etc/nginx/.htpasswd username
```



```
location /netdata {

auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;

proxy_set_header Host $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;

proxy_pass http://localhost:19999/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
}
```

0 comments on commit ec9fdba

Please sign in to comment.