Skip to content

Commit

Permalink
refactor: remove unused cerema configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
loicguillois committed Oct 3, 2024
1 parent 1ecff4a commit d959b4b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
3 changes: 0 additions & 3 deletions server/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ CEREMA_ENABLED=true
CEREMA_API=https://portaildf.cerema.fr
CEREMA_USERNAME=username
CEREMA_PASSWORD=password
CEREMA_INVITE_LIMIT=10
CEREMA_DRY_MODE=true
CEREMA_FORCE_INVITE=false

S3_ENDPOINT=
S3_REGION=any
Expand Down
19 changes: 0 additions & 19 deletions server/src/infra/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,8 @@ interface Config {
cerema: {
api: string;
enabled: boolean;
dryMode: boolean;
username: string;
password: string;
inviteLimit: number;
forceInvite: boolean;
};
datafoncier: {
api: string;
Expand Down Expand Up @@ -199,11 +196,6 @@ const config = convict<Config>({
format: 'strict-boolean',
default: isProduction
},
dryMode: {
env: 'CEREMA_DRY_MODE',
format: 'strict-boolean',
default: !isProduction
},
api: {
env: 'CEREMA_API',
format: 'url',
Expand All @@ -223,17 +215,6 @@ const config = convict<Config>({
default: null,
nullable: !isProduction
},
inviteLimit: {
env: 'CEREMA_INVITE_LIMIT',
format: 'int',
default: 10
},
forceInvite: {
env: 'CEREMA_FORCE_INVITE',
format: Boolean,
default: false,
nullable: !isProduction
}
},
datafoncier: {
api: {
Expand Down

0 comments on commit d959b4b

Please sign in to comment.