-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(env): use config file instead of env for public variable (#1039)
- Loading branch information
Showing
19 changed files
with
37 additions
and
82 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 |
---|---|---|
|
@@ -3,15 +3,9 @@ apiVersion: v1 | |
metadata: | ||
name: www | ||
data: | ||
ACCOUNT_MAIL_SENDER: "[email protected]" | ||
GITLAB_PROJECT_ID: "270" | ||
GITLAB_URL: https://gitlab.factory.social.gouv.fr/api/v4 | ||
HASURA_GRAPHQL_ENDPOINT: "http://hasura/v1/graphql" | ||
JWT_TOKEN_EXPIRES: "15" # 15 min | ||
MATOMO_URL: "https://matomo.fabrique.social.gouv.fr/" | ||
NEXT_PUBLIC_ACTIVATION_TOKEN_EXPIRES: "10080" | ||
NODE_ENV: "production" | ||
REFRESH_TOKEN_EXPIRES: "43200" | ||
SENTRY_DSN: "https://[email protected]/42" | ||
SMTP_URL: "smtp.tipimail.com" | ||
STORAGE_CONTAINER: "cdtn-dev-source" | ||
|
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 |
---|---|---|
|
@@ -3,15 +3,9 @@ apiVersion: v1 | |
metadata: | ||
name: www | ||
data: | ||
ACCOUNT_MAIL_SENDER: "[email protected]" | ||
GITLAB_PROJECT_ID: "270" | ||
GITLAB_URL: https://gitlab.factory.social.gouv.fr/api/v4 | ||
HASURA_GRAPHQL_ENDPOINT: "http://hasura/v1/graphql" | ||
JWT_TOKEN_EXPIRES: "15" # 15 min | ||
MATOMO_URL: "https://matomo.fabrique.social.gouv.fr/" | ||
NEXT_PUBLIC_ACTIVATION_TOKEN_EXPIRES: "10080" | ||
NODE_ENV: "production" | ||
REFRESH_TOKEN_EXPIRES: "43200" | ||
SENTRY_DSN: "https://[email protected]/42" | ||
SMTP_URL: "smtp.tipimail.com" | ||
STORAGE_CONTAINER: "cdtn-preprod-source" | ||
|
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 |
---|---|---|
|
@@ -3,17 +3,11 @@ apiVersion: v1 | |
metadata: | ||
name: www | ||
data: | ||
ACCOUNT_MAIL_SENDER: "[email protected]" | ||
GITLAB_PROJECT_ID: "270" | ||
GITLAB_URL: https://gitlab.factory.social.gouv.fr/api/v4 | ||
HASURA_GRAPHQL_ENDPOINT: "http://hasura/v1/graphql" | ||
JWT_TOKEN_EXPIRES: "15" # 15 min | ||
MATOMO_SITE_ID: "27" | ||
MATOMO_URL: "https://matomo.fabrique.social.gouv.fr/" | ||
NEXT_PUBLIC_ACTIVATION_TOKEN_EXPIRES: "10080" | ||
NODE_ENV: "production" | ||
PRODUCTION: "true" | ||
REFRESH_TOKEN_EXPIRES: "43200" | ||
SENTRY_DSN: "https://[email protected]/42" | ||
SMTP_URL: "smtp.tipimail.com" | ||
STORAGE_CONTAINER: "cdtn" | ||
|
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
export const ACCOUNT_MAIL_SENDER = "[email protected]"; | ||
export const JWT_TOKEN_EXPIRES = 15; // 15 min | ||
export const REFRESH_TOKEN_EXPIRES = 43200; // 30 days in minutes | ||
export const ACTIVATION_TOKEN_EXPIRES = 10080; // 7 days in minutes | ||
export const HASURA_GRAPHQL_JWT_SECRET = process.env | ||
.HASURA_GRAPHQL_JWT_SECRET ?? { | ||
type: "HS256", | ||
key: "a_pretty_long_secret_key_that_should_be_at_least_32_char", | ||
}; | ||
export const BASE_URL = process.env.FRONTEND_HOST || `http://localhost:3000`; |
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