commit 94a5a1c167ab9fd5e6116c573f8662103995b3f2
parent b151230e4885540f0f86412a260e17ae474489c5
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Fri, 1 Nov 2024 09:08:42 +0100
feat: add back the .env defaults
Diffstat:
A | .env | | | 53 | +++++++++++++++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 53 insertions(+), 0 deletions(-)
diff --git a/.env b/.env
@@ -0,0 +1,53 @@
+############
+# Frontend #
+############
+
+# Full URI to backend http API
+VITE_API_URI=http://127.0.0.1
+# Backend API http port
+VITE_API_PORT=8000
+# Application window title
+VITE_APP_DOC_TITLE='MyHeats'
+# Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m
+VITE_SESSION_TTL=3600 #1h
+# Full URI to backend websocket API
+VITE_WS_URI=ws://127.0.0.1
+# Backend API websocket port
+VITE_WS_PORT=8000
+# Locale for frontend date formatting
+VITE_LOCALE=en-US
+
+###########
+# Backend #
+###########
+
+# API server protocol and bind address
+API_URI=http://127.0.0.1
+# Bind port for API server
+API_PORT=8000
+# Redirect url for magic links
+API_REDIRECT_URI=http://127.0.0.1:5173/authverify
+# Backend API CORS allowed origins
+API_CORS_ALLOW_ORIGIN=http://127.0.0.1:5173
+# JWT secret for magic links (`openssl rand -base64 48`)
+API_JWT_SECRET=
+# JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m
+API_JWT_TTL=3600
+
+# SMTP settings for sending magic links
+SMTP_HOST=
+# upgrade later with STARTTLS
+SMTP_STARTTLS=
+SMTP_PORT=
+SMTP_USER=
+SMTP_FROM=
+SMTP_PASSWORD=
+
+# PostgreSQL environment variables for psql client
+# https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables
+# PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc.
+PGHOST=127.0.0.1
+PGPORT=5432
+PGDATABASE=postgres
+PGUSERNAME=postgres
+PGPASSWORD=example