Skip to content

Commit f3b19df

Browse files
committed
chore: stabilize openapi and env generation
1 parent b273ff9 commit f3b19df

32 files changed

Lines changed: 1223 additions & 757 deletions

apps/activity/.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
PORT=4027
33
ENV=local
44
SERVICE_NAME=activity-service
5+
APP_VERSION=0.0.1
56

67
# PostgreSQL Database
78
POSTGRESQL_CONNECTION_URI=postgresql://user:password@localhost:5435/activity_log
@@ -20,4 +21,4 @@ REDIS_HOST=localhost
2021
REDIS_PORT=6379
2122

2223
# API Service
23-
API_SERVICE_URL=http://localhost:4003
24+
API_SERVICE_URL=http://localhost:4003

apps/activity/src/config/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export const APP_CONFIG: ConfigModuleOptions = {
3434
APP_VERSION: Joi.string().required(),
3535
POSTGRESQL_CONNECTION_URI: Joi.string(),
3636
RABBITMQ_URI: Joi.string(),
37-
AXIOM_DATASET: Joi.string(),
38-
AXIOM_TOKEN: Joi.string(),
37+
AXIOM_DATASET: Joi.string().allow(""),
38+
AXIOM_TOKEN: Joi.string().allow(""),
3939
REDIS_HOST: Joi.string().required(),
4040
REDIS_PORT: Joi.number().required(),
4141
REDIS_PASSWORD: Joi.string().allow("").required(),

apps/api/.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ BATTLELOG_SERVICE_URL=http://localhost/api/battlelog
4141

4242
# Discord Bot Service
4343
DISCORD_BOT_SERVICE_URL=http://localhost:4008
44+
45+
# Cleanup Jobs
46+
TIMER_CLEANUP_ENABLED=true
47+
TIMER_RETENTION_DAYS=7
48+
RESERVATIONS_CLEANUP_ENABLED=true
49+
RESERVATIONS_RETENTION_DAYS=30

0 commit comments

Comments
 (0)