diff --git a/.env.test b/.env.test index 922869ec..c5928469 100644 --- a/.env.test +++ b/.env.test @@ -20,7 +20,7 @@ export PROCTOR_POSTGRES_DATABASE=proctord_test export PROCTOR_POSTGRES_MAX_CONNECTIONS=50 export PROCTOR_POSTGRES_CONNECTIONS_MAX_LIFETIME=30 export PROCTOR_NEW_RELIC_APP_NAME=PROCTORD -export PROCTOR_NEW_RELIC_LICENSE_KEY=0123456789012345678901234567890123456789 +export PROCTOR_NEW_RELIC_LICENCE_KEY=0123456789012345678901234567890123456789 export PROCTOR_MIN_CLIENT_VERSION=v2.0.0 export PROCTOR_SCHEDULED_JOBS_FETCH_INTERVAL_IN_MINS=5 export PROCTOR_MAIL_USERNAME=user@mail.com diff --git a/config.yaml b/config.yaml index a1552389..2c8408bd 100644 --- a/config.yaml +++ b/config.yaml @@ -26,7 +26,7 @@ postgres: connections.max.lifetime: 30 new.relic: app.name: proctor-service - license.key: + licence.key: min.client.version: v2.0.0 scheduled.jobs.fetch.interval.in.mins: 5 mail: diff --git a/internal/app/service/infra/config/config.go b/internal/app/service/infra/config/config.go index 0f4b4068..1e7aeed0 100644 --- a/internal/app/service/infra/config/config.go +++ b/internal/app/service/infra/config/config.go @@ -131,12 +131,12 @@ func load() ProctorConfig { PostgresUser: fang.GetString("postgres.user"), PostgresPassword: fang.GetString("postgres.password"), PostgresHost: fang.GetString("postgres.host"), - PostgresPort: fang.GetInt("POSTGRES.PORT"), - PostgresDatabase: fang.GetString("POSTGRES.DATABASE"), + PostgresPort: fang.GetInt("postgres.port"), + PostgresDatabase: fang.GetString("postgres.database"), PostgresMaxConnections: fang.GetInt("postgres.max.connections"), PostgresConnectionMaxLifetime: fang.GetInt("postgres.connections.max.lifetime"), NewRelicAppName: fang.GetString("new.relic.app.name"), - NewRelicLicenseKey: fang.GetString("new.relic.license.key"), + NewRelicLicenseKey: fang.GetString("new.relic.licence.key"), MinClientVersion: fang.GetString("min.client.version"), ScheduledJobsFetchIntervalInMins: fang.GetInt("scheduled.jobs.fetch.interval.in.mins"), MailUsername: fang.GetString("mail.username"),