Commit 83574557 authored by Pepijn Boers's avatar Pepijn Boers
Browse files

Add mirror option

parent adaf29b0
......@@ -9,7 +9,6 @@ services:
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:z
- ./matomo/cert-stuff/ssl:/etc/ssl/private:Z
- ./log/nginx:/var/log/nginx:Z
ports:
- 80:80
- 443:443
......
......@@ -6,9 +6,6 @@ events {
}
http {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
server {
listen 80 default_server;
server_name matomo.science.ru.nl www.matomo.science.ru.nl;
......@@ -51,6 +48,19 @@ http {
proxy_set_header X-Forwarded-Uri "/dnt";
proxy_pass http://app-dnt;
}
}
location /matomo.php {
mirror /mirror;
proxy_pass http://app;
}
location = /mirror {
internal;
# change id here? not possible for multiple sides, unless
# we make a separate location for each site id?
# $request_uri is "/something" for url "https://example.com/something"
proxy_pass http://app-dnt$request_uri;
}
}
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment