<type>(scope): <description>

[body]

[footer(s)]
This commit is contained in:
ITQ
2025-03-01 14:22:50 +03:00
parent fc63d506ca
commit e3c2fc078e
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -48,10 +48,10 @@ domain = localhost
enforce_domain = false enforce_domain = false
# The full public facing url # The full public facing url
root_url = %(protocol)s://%(domain)s:%(http_port)s/ root_url = %(protocol)s://%(domain)s:%(http_port)s/admin/grafana/
# Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons. # Serve Grafana from subpath specified in `root_url` setting. By default it is set to `false` for compatibility reasons.
serve_from_sub_path = false serve_from_sub_path = true
# Log web requests # Log web requests
router_logging = false router_logging = false
+10
View File
@@ -155,6 +155,16 @@ http {
client_max_body_size 100M; client_max_body_size 100M;
} }
location /admin/grafana/ {
rewrite ^/admin/grafana/(.*) /$1 break;
proxy_pass http://grafana:3000/;
proxy_set_header Host $http_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;
}
error_page 404 = @notfound; error_page 404 = @notfound;
location @notfound { location @notfound {
return 444; return 444;