netdata開源Linux系統監控系統安裝:nginx反代設定
阿新 • • 發佈:2021-09-09
將 Netdata 連線到 Nginx
啟用代理的第一部分是為 Nginx 建立一個新伺服器。
使用您喜歡的文字編輯器在 /etc/nginx/sites-available/netdata 建立一個檔案,複製以下配置,並更改 server_name 行以匹配您的域。
upstream backend { server 127.0.0.1:19999; keepalive 64; } server { listen 80; # uncomment the line if you want nginx to listen on IPv6 address #listen [::]:80; # Change `example.com` to match your domain name. server_name netdata.example.com; location / { 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; proxy_http_version 1.1; proxy_pass_request_headers on; proxy_set_header Connection "keep-alive"; proxy_store off; } }
參考文章
nginx配置禁特定路徑下的反向代理
nginx配置禁止訪問目錄或禁止訪問目錄下的檔案
nginx跨域處理
帶你深入瞭解nginx基本登入認證(包含配置步驟)
使用htpasswd生成密碼
使用openssl生成密碼
使用python生成密碼
你的nginx登入認證安全嗎?
配置http基本驗證(Basic Auth)
Centos安裝htpasswd_Nginx中使用htpasswd
系列文章
netdata開源Linux系統監控系統安裝:安裝
netdata開源Linux系統監控系統安裝:配置項詳解
netdata開源Linux系統監控系統安裝:nginx反代設定