mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-06 01:21:39 -04:00
config: Fix inconsistent env vars
This should make the translation from env var name to config name and vice versa more consistent. Fixes #751 Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
1883db4c93
commit
8d815cf2c5
4 changed files with 20 additions and 20 deletions
|
@ -68,7 +68,7 @@ const mediaSchema = Joi.object({
|
|||
imgur: Joi.when('...use', {
|
||||
is: Joi.valid(BackendType.IMGUR),
|
||||
then: Joi.object({
|
||||
clientID: Joi.string().label('HD_MEDIA_BACKEND_IMGUR_CLIENTID'),
|
||||
clientID: Joi.string().label('HD_MEDIA_BACKEND_IMGUR_CLIENT_ID'),
|
||||
}),
|
||||
otherwise: Joi.optional(),
|
||||
}),
|
||||
|
@ -96,7 +96,7 @@ export default registerAs('mediaConfig', async () => {
|
|||
container: process.env.HD_MEDIA_BACKEND_AZURE_CONTAINER,
|
||||
},
|
||||
imgur: {
|
||||
clientID: process.env.HD_MEDIA_BACKEND_IMGUR_CLIENTID,
|
||||
clientID: process.env.HD_MEDIA_BACKEND_IMGUR_CLIENT_ID,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue