Commit 2e149bce authored by Pepijn Boers's avatar Pepijn Boers
Browse files

Update docker-compose & nginx

parent 732db0c0
......@@ -59,7 +59,7 @@ services:
volumes:
- ./data/app_dnt:/var/www/html:z
environment:
- MATOMO_DATABASE_HOST=db-dnt
- MATOMO_DATABASE_HOST=db
env_file:
- ./mysql/db.env
ports:
......
......@@ -7,11 +7,11 @@ events {
http {
server {
listen 80;
listen 80 default_server;
server_name matomo.science.ru.nl www.matomo.science.ru.nl;
# redirects both www and non-www to https
return 301 https://localhost$request_uri;
return 301 https://matomo.science.ru.nl$request_uri;
}
server {
......@@ -21,7 +21,7 @@ http {
ssl_certificate_key /etc/ssl/private/matomo.science.ru.nl.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
......@@ -34,7 +34,7 @@ http {
}
location /dnt {
return 302 /dnt/;
return 302 https://matomo.science.ru.nl/dnt/;
}
location /dnt/ {
......
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