Skip to content

Commit 3ad3fd7

Browse files
committed
Add encryption for .env file with public key
1 parent ea1a9a2 commit 3ad3fd7

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

frontend/web/.env

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#/-------------------[DOTENV_PUBLIC_KEY]--------------------/
2+
#/ public-key encryption for .env files /
3+
#/ [how it works](https://dotenvx.com/encryption) /
4+
#/----------------------------------------------------------/
5+
DOTENV_PUBLIC_KEY="02a33b6ab1419fbdce5ad6180a93970b61a1d26b5728554d35186700826d141f32"
6+
7+
# .env
8+
TEST="encrypted:BBxrOwjcIzO7p0ysNaUGZbAWKuyaDSWcQhz9teqOZKiLori+aHi4741eB81O/qOWW24wRPbTAgluP2Pgeoo9FsETvDsB0+nbvJMewGgE1NnPVBpSom/sPO9gTQDyAytamzjig21G"
9+
# Generate a random secret: https://generate-secret.vercel.app/32 or `openssl rand -base64 32`
10+
AUTH_SECRET="encrypted:BDJgQJbwZBGGIrsj17zrQnK4LtwzUYGGrd6gFQlRI6QU3rXB6r/QZuC6J6Xg4Mrnx4sQf9xZLsHz4uVnHpMbVPuurYxwiK+DEiqSO+pua6usKdezLcKQ2quiYkp14knbC5z117F2+ARhILc7UAtv7uPLfEduT9eIzjdxkAb7Mk4ZnX9D8who75HjtXr+"
11+
# Google Vertex AI
12+
# see: https://sdk.vercel.ai/providers/ai-sdk-providers/google-vertex
13+
GOOGLE_VERTEX_PROJECT="advena-dev"
14+
GOOGLE_VERTEX_LOCATION="us-central1"
15+
POSTGRES_URL="postgresql://postgres:your_password@localhost:5432/your_database"

frontend/web/.env.example

Lines changed: 0 additions & 17 deletions
This file was deleted.

frontend/web/.gitignore

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,15 @@ yarn-debug.log*
2323
yarn-error.log*
2424
.pnpm-debug.log*
2525

26-
# local env files
27-
.env.local
28-
.env.development.local
29-
.env.test.local
30-
.env.production.local
26+
# dotenvx
27+
.env.keys
3128

3229
# turbo
3330
.turbo
3431

35-
.env
3632
.vercel
3733
.vscode
38-
.env*.local
3934

4035
# typescript
4136
*.tsbuildinfo
4237
next-env.d.ts
43-
44-
# dotenvx
45-
.env.keys

0 commit comments

Comments
 (0)