-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
25 lines (21 loc) · 855 Bytes
/
Copy path.env.example
File metadata and controls
25 lines (21 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ====================================================
# Example environment configuration
# Copy this file to `.env` for local development.
# These credentials are fine for local testing with a local PostgreSQL instance.
# ⚠️ IMPORTANT: Replace all passwords/secrets before deploying to staging or production!
# ====================================================
# Profile for local runs; compose will override to prod
SPRING_PROFILES_ACTIVE=dev
# JWT
JWT_SECRET=q0xnykoDIA32ktCdxEt01v/ht6ro6Q71FeOf/gqxU5DF+yVfnq9MwHA07XJ0zxhd6YtcnYxDMHXXaM+zxfgRew==
# --- DEV (H2) ---
DB_URL=jdbc:h2:mem:shortenerdb;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
DB_DRIVER=org.h2.Driver
DB_USERNAME=sa
DB_PASSWORD=
# --- PROD (PostgreSQL) ---
DB_HOST=localhost
DB_PORT=5432
DB_NAME=url_shortener
DB_USERNAME_PROD=url_user
DB_PASSWORD_PROD=url_pass