Commit 5a6bcc38 authored by Pepijn Boers's avatar Pepijn Boers
Browse files

Commit admin page works

parent 2e149bce
version: "3"
services:
reverse-proxy:
reverse-proxy:
image: nginx:1.17.10
depends_on:
depends_on:
- db
- app
volumes:
......@@ -19,7 +19,7 @@ services:
volumes:
- ./data/data:/var/lib/mysql:Z
- ./data/backup:/var/lib/backup:Z
- ./mysql/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql:Z
- ./mysql/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql:z
environment:
- MYSQL_ROOT_PASSWORD=admin
env_file:
......@@ -45,7 +45,7 @@ services:
volumes:
- ./data/data_dnt:/var/lib/mysql:Z
- ./data/backup_dnt:/var/lib/backup:Z
- ./mysql/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql:Z
- ./mysql/setup-db.sql:/docker-entrypoint-initdb.d/setup-db.sql:z
environment:
- MYSQL_ROOT_PASSWORD=admin
env_file:
......
......@@ -38,6 +38,11 @@ http {
}
location /dnt/ {
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;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
# We do not want to send requests to app-dnt/dnt but to app-dnt/, so rewrite!
rewrite ^/dnt(.*) /$1 break;
proxy_set_header X-Forwarded-Uri "/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