Updated docer compose for selfservice fix

This commit is contained in:
Nicolai Ort 2021-03-31 19:02:51 +02:00
parent a67a5fd4e5
commit 75e9c3d618
3 changed files with 6 additions and 7 deletions

View File

@ -1,7 +1,5 @@
const config = { const config = {
baseurl: 'http://localhost:4010', baseurl: 'http://localhost:4010',
// optional params ⏬ documentserver_key: '',
fallback_username: 'demo',
fallback_password: 'demo',
prefersHashRouting: false prefersHashRouting: false
}; };

View File

@ -1,10 +1,10 @@
const config = { const config = {
// required // required
documentserver_key: '', documentserver_key: '',
// required // required - with trailing slash
baseurl: '', baseurl: 'http://localhost:4010/',
// optional, will fallback to /selfservice // optional - with trailing slash
baseurl_selfservice: '/selfservice', baseurl_selfservice: '/selfservice/',
// optional, will fallback to /imprint // optional, will fallback to /imprint
url_imprint: '', url_imprint: '',
// optional, will fallback to /privacy // optional, will fallback to /privacy

View File

@ -73,6 +73,7 @@ http {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive; proxy_set_header Connection keep-alive;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Forwarded-Prefix /selfservice;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;