fix kratos public base url
This commit is contained in:
parent
30796bdf2e
commit
dad47bf7b6
|
@ -79,16 +79,13 @@ services:
|
||||||
container_name: kratos
|
container_name: kratos
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
ports:
|
|
||||||
- "4433:4433" # public
|
|
||||||
- "4434:4434" # admin
|
|
||||||
expose:
|
expose:
|
||||||
- 4433 # public
|
- 4433 # public
|
||||||
- 4434 # admin
|
- 4434 # admin
|
||||||
environment:
|
environment:
|
||||||
- DSN=cockroach://root@cockroach:26257/defaultdb?max_conns=20&max_idle_conns=4&sslmode=verify-full&sslcert=/certs/node.crt&sslkey=/certs/node.key&sslrootcert=/certs/ca.crt
|
- DSN=cockroach://root@cockroach:26257/defaultdb?max_conns=20&max_idle_conns=4&sslmode=verify-full&sslcert=/certs/node.crt&sslkey=/certs/node.key&sslrootcert=/certs/ca.crt
|
||||||
- LOG_LEVEL=trace
|
- LOG_LEVEL=trace
|
||||||
- SERVE_PUBLIC_BASE_URL=/.ory/kratos/public/
|
- SERVE_PUBLIC_BASE_URL=https://secure.${DOMAIN_NAME}/.ory/kratos/public/
|
||||||
- SQA_OPT_OUT=true
|
- SQA_OPT_OUT=true
|
||||||
command: serve -c /etc/config/kratos/kratos.yml
|
command: serve -c /etc/config/kratos/kratos.yml
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -110,7 +107,6 @@ services:
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
environment:
|
environment:
|
||||||
- SECURITY_MODE=jwks
|
- SECURITY_MODE=jwks
|
||||||
- PROJECT_NAME=Skynet
|
|
||||||
- BASE_URL=/
|
- BASE_URL=/
|
||||||
- KRATOS_BROWSER_URL=/.ory/kratos/public
|
- KRATOS_BROWSER_URL=/.ory/kratos/public
|
||||||
- JWKS_URL=http://oathkeeper:4456/.well-known/jwks.json
|
- JWKS_URL=http://oathkeeper:4456/.well-known/jwks.json
|
||||||
|
|
|
@ -25,7 +25,6 @@ export default {
|
||||||
},
|
},
|
||||||
baseUrl,
|
baseUrl,
|
||||||
jwksUrl: process.env.JWKS_URL || "/",
|
jwksUrl: process.env.JWKS_URL || "/",
|
||||||
projectName: process.env.PROJECT_NAME || "SecureApp",
|
|
||||||
|
|
||||||
securityMode,
|
securityMode,
|
||||||
SECURITY_MODE_JWT,
|
SECURITY_MODE_JWT,
|
||||||
|
|
Reference in New Issue