Skip to content

Commit dac02c5

Browse files
committed
add prod env template
1 parent af38445 commit dac02c5

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.production.env.template

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
GOOGLE_CLIENT_ID=client_id.apps.googleusercontent.com
2+
SIGNING_SECRET=your-signing-secret
3+
EXPIRATION_TIME_SECONDS="86400"
4+
FILE_SIZE_LIMIT="50"
5+
PORT=8085
6+
VITE_API_BASE_URL=http://localhost:8085
7+
FRONTEND_BUILD_DIR=../frontend/dist/
8+
9+
DB_NAME=
10+
DB_HOST=
11+
DB_PORT=
12+
DB_USER=
13+
DB_PASSWORD=
14+
15+
UPLOADED_NOTES_PATH=cfmn/notes/uploaded
16+
PREVIEWS_PATH=cfmn/previews/uploaded
17+
LOG_LOCATION=/app/log
18+
19+
# Static Files Configuration
20+
# Axum can serve static files directly from the filesystem if configured.
21+
# To use metakgp/odins-vault in production, you need to set the following environment variables.
22+
STATIC_FILES_URL=http://static.metakgp.org
23+
STATIC_FILE_STORAGE_LOCATION=/app/static_files

backend/src/db/db.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ impl DBPoolWrapper {
1616
env_vars.db_port,
1717
env_vars.db_name
1818
);
19+
println!("{}", db_url);
1920
let connection_pool = PgPoolOptions::new()
2021
.max_connections(5)
2122
.connect(&db_url)

0 commit comments

Comments
 (0)