Grafana 设置二级目录及配置 Nginx 代理 发表于 2021-02-15 更新于 2024-11-01 分类于 Grafana篇 阅读次数: Grafana 设置二级目录及配置 Nginx 代理 步骤设置环境变量: 12345 env: - name: GF_SERVER_ROOT_URL value: "%(protocol)s://%(domain)s:%(http_port)s/grafana" - name: GF_SERVER_SERVE_FROM_SUB_PATHvalue: "true" 此时 NGINX 进行反向代理的配置: 123456location /grafana/ { 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_pass http://10.55.3.160:31120/;}