-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Geoffroy Empain
committed
Dec 9, 2020
1 parent
3cfe66a
commit 7be1864
Showing
41 changed files
with
123 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { env } from '../env'; | ||
import { env } from '../env/env'; | ||
|
||
export const authCookieName = 'auth'; | ||
|
||
|
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { parseEnv } from '../commons/env/parse-env'; | ||
import { Logger } from '../commons/logger/logger'; | ||
import { envSpec } from './env-spec'; | ||
|
||
export interface Env { | ||
DEBUG: string; | ||
MELI_PORT: number; | ||
MELI_URL: string; | ||
MELI_URL_INTERNAL: string; | ||
MELI_UI_URL: string; | ||
MELI_UI_URL_INTERNAL: string; | ||
MELI_SITES_URL: string; | ||
MELI_STANDALONE: boolean; | ||
MELI_UI_DIR: string; | ||
MELI_JWT_SECRET: string; | ||
MELI_JWT_TOKEN_EXPIRATION: number; | ||
MELI_MONGO_URI: string; | ||
MELI_GITLAB_URL: string; | ||
MELI_GITLAB_CLIENT_ID: string; | ||
MELI_GITLAB_CLIENT_SECRET: string; | ||
MELI_GITLAB_GROUPS: string[]; | ||
MELI_GITEA_URL: string; | ||
MELI_GITEA_CLIENT_ID: string; | ||
MELI_GITEA_CLIENT_SECRET: string; | ||
MELI_GITEA_ORGS: string[]; | ||
MELI_GITHUB_URL: string; | ||
MELI_GITHUB_CLIENT_ID: string; | ||
MELI_GITHUB_CLIENT_SECRET: string; | ||
MELI_GITHUB_ORGS: string[]; | ||
MELI_GOOGLE_CLIENT_ID: string; | ||
MELI_GOOGLE_CLIENT_SECRET: string; | ||
MELI_MIGRATE_ROLLBACK: boolean; | ||
MELI_SSL_KEY: string; | ||
MELI_SSL_CERT: string; | ||
MELI_COOKIE_SAMESITE: boolean; | ||
MELI_COOKIE_SECURE: boolean; | ||
MELI_RATE_LIMIT_WINDOW: number; | ||
MELI_RATE_LIMIT_MAX_PER_WINDOW: number; | ||
MELI_PROMETHEUS_HOST: string; | ||
MELI_PROMETHEUS_PORT: number; | ||
MELI_PROMETHEUS_REFRESH_RATE: number; | ||
MELI_PROMETHEUS_METRICS_PREFIX: string; | ||
MELI_REDIS_URL: string; | ||
MELI_HOOK_TIMEOUT: number; | ||
MELI_MAIL_HOST: string; | ||
MELI_MAIL_PORT: number; | ||
MELI_MAIL_USERNAME: number; | ||
MELI_MAIL_PASSWORD: number; | ||
MELI_MAIL_FROM: string; | ||
MELI_MAIL_TEMPLATE_DIR: string; | ||
MELI_MAIL_SUBJECT_PREFIX: string; | ||
MELI_SENTRY_ENABLED: boolean; | ||
MELI_RESTRICTED_IPS: string[]; | ||
MELI_RESTRICTED_DOMAINS: string[]; | ||
MELI_CADDY_DOCKER: boolean; | ||
MELI_CADDY_ADMIN_API_URL: string; | ||
// Caddy content path | ||
MELI_CADDY_DIR: string; | ||
MELI_TMP_DIRECTORY: string; | ||
MELI_SITES_DIR: string; | ||
MELI_INVITE_EXPIRATION_TIME: number; | ||
MELI_STATIC_DIR: string; | ||
MELI_BCRYPT_SALTROUNDS: number; | ||
MELI_ACME_SERVER: string; | ||
MELI_ACME_CA_PATH: string; | ||
MELI_AXIOS_TIMEOUT: number; | ||
MELI_USER: string; | ||
MELI_PASSWORD: string; | ||
MELI_MAX_ORGS: number; | ||
} | ||
|
||
export const env: Env = parseEnv(envSpec); | ||
|
||
const logger = new Logger('meli.api:env'); | ||
logger.debug('loaded env', env); |
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.