!!!!importance
Since the intranet is not accessible, I must access the intranet through the Extranet IP address, such as intranet A:80 I must use B:7280 to access port 80 of A
- This is my grafana .ini
[server]
domain = A
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true
- this is my nginx conf
server {
listen 80;
server_name A; # ip
location /grafana/ {
proxy_set_header Host $http_host;
proxy_pass http://A:3000/;
}
# Proxy Grafana Live WebSocket connections.
location /api/live {
rewrite ^/(.*) /$1 break;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $http_host;
proxy_pass http://A:3000/;
}
}
Now I’m going to visit graffana via B:7280/grafana/ Look !