-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from LerianStudio/develop
DTM-[MZ-511]
- Loading branch information
Showing
15 changed files
with
1,850 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,47 @@ | ||
# AUTH | ||
# Kratos | ||
#Env | ||
ENV_NAME=production | ||
KRATOS_DB_USER=kratos | ||
KRATOS_DB_PASSWORD=kratos | ||
KRATOS_DB_NAME=kratos | ||
KRATOS_DB_PORT=5432 | ||
KRATOS_ADMIN_URL=http://kratos:4434/ | ||
KRATOS_PUBLIC_URL=http://kratos:4433/ | ||
# generate a random secret to replace this example | ||
KRATOS_COOKIE_SECRET= #< to create a secreat you may run this command to generate a new secret: pwgen -s -n 30 7 > | ||
# generate a random secret to replace this example | ||
KRATOS_CIPHER_SECRET= #< to create a secreat you may run this command to generate a new secret: pwgen -s -n 30 7 > | ||
SMTP_USER=test | ||
SMTP_PASSWORD=test | ||
SMTP_ADDRESS=mailslurper | ||
SMTP_PORT=1025 | ||
# Hydra | ||
HYDRA_ADDRESS=http://hydra:4445/ | ||
HYDRA_DB_USER=hydra | ||
HYDRA_DB_PASSWORD=hydra | ||
HYDRA_DB_NAME=hydra | ||
HYDRA_DB_PORT=5432 | ||
# generate a random secret to replace this example | ||
HYDRA_SYSTEM_SECRET= #< to create a secreat you may run this command to generate a new secret: pwgen -s -n 30 7 > | ||
# generate a random secret to replace this example | ||
HYDRA_COOKIE_SECRET= #< to create a secreat you may run this command to generate a new secret: pwgen -s -n 30 7 > | ||
# generate a random secret to replace this example | ||
HYDRA_PAIRWISE_SALT= #< to create a secreat you may run this command to generate a new secret: pwgen -s -n 30 7 > | ||
|
||
#APP - Auth | ||
APP_CONTEXT=/auth/v1 | ||
SERVER_PORT=3004 | ||
SERVER_ADDRESS=:${SERVER_PORT} | ||
|
||
# Casdoor | ||
CASDOOR_PORT=8000 | ||
CASDOOR_ADDRESS=http://localhost:${CASDOOR_PORT}/ | ||
CASDOOR_CLIENT_ID=client_id | ||
CASDOOR_CLIENT_SECRET=client_secret | ||
# When this environment variable is set to true, localhost will be replaced with host.docker.internal so that Casdoor can access the database. ( Ref. https://casdoor.org/docs/basic/try-with-docker/#option-3-try-with-docker-compose) | ||
RUNNING_IN_DOCKER=true | ||
|
||
# Casdoor DB | ||
DB_HOST=casdoor-db | ||
CASDOOR_DB_USER=midaz | ||
CASDOOR_DB_NAME=casdoor | ||
CASDOOR_DB_PASSWORD=leriand | ||
CASDOOR_DB_PORT=5436 | ||
USER_EXECUTE_COMMAND=postgres | ||
LOG_LEVEL=debug | ||
|
||
appname=casdoor | ||
httpport=8000 | ||
runmode=dev | ||
driverName=postgres | ||
dataSourceName="user=${CASDOOR_DB_USER} password=${CASDOOR_DB_PASSWORD} host=${DB_HOST} port=${CASDOOR_DB_PORT} sslmode=disable dbname=${CASDOOR_DB_NAME}" | ||
dbName=${CASDOOR_DB_NAME} | ||
showSql=false | ||
authState="casdoor" | ||
socks5Proxy="127.0.0.1:10808" | ||
verificationCodeTimeout=10 | ||
## Is used to determine whether only the post method is used to add a record. | ||
logPostOnly=true | ||
isUsernameLowered=false | ||
origin= | ||
batchSize=100 | ||
enableErrorMask=false | ||
enableGzip=true | ||
## Limit of creation for each type of resource, -1 means no limit. | ||
quota='{"organization": -1, "user": -1, "application": -1, "provider": -1}' | ||
logConfig='{"filename": "logs/casdoor.log", "maxdays":99999, "perm":"0770"}' | ||
initDataFile="./init_data.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.