Skip to content

Commit

Permalink
feat: typesafe environment variables using typia validation and proce…
Browse files Browse the repository at this point in the history
…ssEnv.d.ts typings declaration
  • Loading branch information
itsdheerajbudhiraja committed May 1, 2024
1 parent 6242bfa commit b8feb8a
Show file tree
Hide file tree
Showing 21 changed files with 13,019 additions and 12,466 deletions.
9 changes: 5 additions & 4 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ HTTPS=false
SSL_CRT_FILE=
SSL_KEY_FILE=
TRUST_PROXY=true
CORS_ORIGIN=["http://localhost:3000"]
CORS_ORIGIN=http://localhost:3000,
LOG_LEVEL_CONSOLE=debug
LOG_LEVEL_FILE=silly

Expand Down Expand Up @@ -35,6 +35,7 @@ UPDATE_SWAGGER_ON_START=true
# Database
DB_TYPE=MongoDb
DB_CONNECTION_STRING=mongodb://<username>:<password>@<url_or_ip>:<port>/<db_name>
DB_ENCRYPT_DATA=true
DB_ENCRYPTION_VAULT_COLLECTION=encryption.__keyVault
DB_ENCRYPTION_LOCAL_KEY=da881191647fc0a852f8e045d3e474a21eb3a725be2e9f4b2ac04a0b492e457d28fe4374976feaecc1145df0459d592d0a1c379dfcaa1b0386bfd0433bb80f54259c0144be4f436f9b0c0d10a4fe51666f851e7b5a6fc2dab316f570ac95f14c
DB_ENCRYPTION_ALGORITHM=AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic
Expand Down Expand Up @@ -71,6 +72,6 @@ APPLICATION_TITLE_COLOR=mediumaquamarine
APPLICATION_DESCRIPTION_COLOR=cyan

# Email validation TLDS
EMAIL_VALIDATOR_ADDITIONAL_TLDS=[]
EMAIL_VALIDATOR_ADDITIONAL_SLDS=[]
EMAIL_VALIDATOR_ADDITIONAL_DOMAINS=[]
EMAIL_VALIDATOR_ADDITIONAL_TLDS=,
EMAIL_VALIDATOR_ADDITIONAL_SLDS=,
EMAIL_VALIDATOR_ADDITIONAL_DOMAINS=,
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ UPDATE_SWAGGER_ON_START=true
# Database
DB_TYPE=MongoDb
DB_CONNECTION_STRING=mongodb://<username>:<password>@<url_or_ip>:<port>/<db_name>
DB_ENCRYPT_DATA=true
DB_ENCRYPTION_VAULT_COLLECTION=encryption.__keyVault
DB_ENCRYPTION_LOCAL_KEY=da881191647fc0a852f8e045d3e474a21eb3a725be2e9f4b2ac04a0b492e457d28fe4374976feaecc1145df0459d592d0a1c379dfcaa1b0386bfd0433bb80f54259c0144be4f436f9b0c0d10a4fe51666f851e7b5a6fc2dab316f570ac95f14c
DB_ENCRYPTION_ALGORITHM=AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16.0
FROM node:20.12.0

# Add a new user "nodeapp"
RUN useradd nodeapp
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rust-wasm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.16.0
FROM node:20.12.0

# Add a new user "nodeapp"
RUN useradd nodeapp
Expand Down
Loading

0 comments on commit b8feb8a

Please sign in to comment.