mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
More fixes for relative urls when running Grafana under a different sub path (#10470)
* Add nginx proxy docker container Ease test/verification of running Grafana thru a reverse proxy * Add apache proxy docker container Ease test/verification of running Grafana thru a reverse proxy * Fix relative urls for reset password page * Fix relative urls for signup page * Fix relative urls for login page * Fix relative urls edit plugin page
This commit is contained in:
committed by
Torkel Ödegaard
parent
776d17458b
commit
3ecec8e0d2
4
docker/blocks/apache_proxy/Dockerfile
Normal file
4
docker/blocks/apache_proxy/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM jmferrer/apache2-reverse-proxy:latest
|
||||
|
||||
COPY ports.conf /etc/apache2/sites-enabled
|
||||
COPY proxy.conf /etc/apache2/sites-enabled
|
||||
9
docker/blocks/apache_proxy/docker-compose.yaml
Normal file
9
docker/blocks/apache_proxy/docker-compose.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
# This will proxy all requests for http://localhost:10081/grafana/ to
|
||||
# http://localhost:3000 (Grafana running locally)
|
||||
#
|
||||
# Please note that you'll need to change the root_url in the Grafana configuration:
|
||||
# root_url = %(protocol)s://%(domain)s:/grafana/
|
||||
|
||||
apacheproxy:
|
||||
build: blocks/apache_proxy
|
||||
network_mode: host
|
||||
1
docker/blocks/apache_proxy/ports.conf
Normal file
1
docker/blocks/apache_proxy/ports.conf
Normal file
@@ -0,0 +1 @@
|
||||
Listen 10081
|
||||
4
docker/blocks/apache_proxy/proxy.conf
Normal file
4
docker/blocks/apache_proxy/proxy.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
<VirtualHost *:10081>
|
||||
ProxyPass /grafana/ http://localhost:3000/
|
||||
ProxyPassReverse /grafana/ http://localhost:3000/
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user