Files
CalendarApi/.env.example
Michilis bd24545b7b Fix BASE_URL config loading, add tasks/projects; robust .env path resolution
- Config: try ENV_FILE, .env, ../.env for loading; trim trailing slash from BaseURL
- Log BASE_URL at server startup for verification
- .env.example: document BASE_URL
- Tasks, projects, tags, migrations and related API/handlers

Made-with: Cursor
2026-03-09 18:57:51 +00:00

26 lines
764 B
Plaintext

# Database
DATABASE_URL=postgres://calendarapi:password@localhost:5432/calendarapi?sslmode=disable
# Auth (REQUIRED: set secure value in production)
JWT_SECRET=dev-secret-change-me
# Redis (optional — enables background reminder jobs)
# REDIS_ADDR=localhost:6379
# Server
SERVER_PORT=8080
ENV=development
# Base URL for iCal feed URLs and availability URLs.
# Defaults to http://localhost:$SERVER_PORT if unset.
# Set to your public API URL for Google Calendar and external subscriptions.
# Example: BASE_URL=https://api.example.com
BASE_URL=http://localhost:8080
# CORS (comma-separated origins; defaults to localhost:5173 for dev)
# CORS_ORIGINS=https://app.example.com,https://www.example.com
# Rate limiting
# RATE_LIMIT_RPS=100
# RATE_LIMIT_BURST=200