Project

General

Profile

Actions

Task #149

open

consolidate environments

Added by Sam Pearson 3 months ago. Updated 23 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/27/2026
Due date:
% Done:

0%

Estimated time:
Engineering Effort:
medium
App Component:
Server Admin
Feature:

Description

environment files and variables are scattered around the project, and are causing deploy issues.
git issues, service issues, these things need to be standardized and settled

JWT_SECRET_KEY vars for wep and api (also API_URL for web)
./infrastructure/config/env.api
./infrastructure/config/env.web

JWT_SECRET_KEY for local API
./src/api/config/.env
./src/api/config/.env.example

API_URL for webapp
./src/webapp/config/environments/env.example
./src/webapp/config/environments/.env.local

API base url and test variables for api testing:
API_BASE_URL, CALDAV_URL, CALDAV_USERNAME, CALDAV_PASSWORD, CALDAV_CALENDAR_UID
./test/api/config/environments/.env.dev
./test/api/config/environments/.env.staging
./test/api/config/environments/.env.production

WEBAPP_URL and API_BASE_URL for webapp testing
./test/webapp/environments/.env.staging
./test/webapp/environments/env.example
./test/webapp/environments/.env.local


where do we use environment vars?

src/webapp/webapp.py
src/api/config/config.py
src/database/config_db.py
test/api/config/environments/environment_manager.py
test/webapp/tests/conftest.py
src/webapp/services/api_client.py

Actions

Also available in: Atom PDF