Skip to content

Commit

Permalink
fix: grafana infinitely loop /login (apache#7335)
Browse files Browse the repository at this point in the history
* fix: grafana 10.4.1 add GF_SERVER_SERVE_FROM_SUB_PATH=false

* fix: grafana 10.4.1 add GF_SERVER_SERVE_FROM_SUB_PATH=true

* fix: grafana 10.4.1 remove rewrite grafana

* fix: grafana infinitely loop /login after upgrade to version 1.0.0-beta4
  • Loading branch information
abeizn authored Apr 16, 2024
1 parent c4cf352 commit d52abff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion config-ui/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ ${SERVER_CONF}
resolver ${DNS} valid=${DNS_VALID};
resolver_timeout 3s;
set $target "${GRAFANA_ENDPOINT}";
rewrite /grafana/(.*) /$1 break;
proxy_set_header Host $http_host;
proxy_set_header Authorization "";
proxy_set_header X-Forwarded-Access-Token "${cookie_access_token}";
Expand Down
1 change: 1 addition & 0 deletions grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ COPY ./dashboards /etc/grafana/dashboards
COPY ./img/grafana_icon.svg /usr/share/grafana/public/img/grafana_icon.svg
COPY ./img /usr/share/grafana/public/img/lake
ENV GF_USERS_ALLOW_SIGN_UP=false
ENV GF_SERVER_SERVE_FROM_SUB_PATH=true
ENV GF_DASHBOARDS_JSON_ENABLED=true
ENV GF_LIVE_ALLOWED_ORIGINS='*'
ENV GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH=/etc/grafana/dashboards/Homepage.json
Expand Down

0 comments on commit d52abff

Please sign in to comment.