Skip to content

Commit

Permalink
fix: autres configs par défaut
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot committed Oct 21, 2024
1 parent 85340b4 commit 9a41484
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions graphql/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,46 @@ module.exports = convict({
},
mongo: {
db: {
default: 'stylo-dev',
format: String,
env: 'MONGO_SERVER_DB'
},
host: {
default: '127.0.0.1',
format: 'ip',
env: 'MONGO_SERVER'
},
port: {
default: '27027',
format: 'port',
env: 'MONGO_SERVER_PORT'
}
},
oauthProvider: {
name: {
default: '',
format: String,
env: 'OPENID_CONNECT_NAME'
},
issuer: {
default: '',
format: 'url',
env: 'OPENID_CONNECT_ISSUER'
},
callbackUrl: {
default: '',
format: 'url',
env: 'OPENID_CONNECT_CALLBACK_URL'
},
client: {
id: {
default: '',
format: String,
sensitive: true,
env: 'OPENID_CONNECT_CLIENT_ID'
},
secret: {
default: '',
format: String,
sensitive: true,
env: 'OPENID_CONNECT_CLIENT_SECRET'
Expand All @@ -66,15 +74,18 @@ module.exports = convict({
auth: {
tokenUrl: {
format: 'url',
env: 'OPENID_CONNECT_TOKEN_URL'
env: 'OPENID_CONNECT_TOKEN_URL',
default: '',
},
userInfo: {
format: 'url',
env: 'OPENID_CONNECT_USER_INFO_URL'
env: 'OPENID_CONNECT_USER_INFO_URL',
default: '',
},
url: {
format: 'url',
env: 'OPENID_CONNECT_AUTH_URL'
env: 'OPENID_CONNECT_AUTH_URL',
default: ''
}
}
},
Expand Down

0 comments on commit 9a41484

Please sign in to comment.