* feat(infra): backend cookiecutter template with fastapi tortoise * feat(infra): cli cookiecutter template with typer entry point * feat(infra): fullstack cookiecutter template with sveltekit frontend * test(infra): cookiecutter template tests and render fixes * style(infra): ruff cleanup for cookiecutter template tests * style(infra): ruff format cookiecutter template tests * fix(infra): handle use_db no use_auth no in cookiecutter --------- Co-authored-by: opencode-agent <agent@opencode.local>
18 lines
No EOL
474 B
Text
18 lines
No EOL
474 B
Text
# Application
|
|
APP__ENVIRONMENT=dev
|
|
SERVER__HOST=0.0.0.0
|
|
SERVER__PORT=8000
|
|
|
|
# Database (nested via __ separator — pydantic-settings convention)
|
|
{% if cookiecutter.use_db == "yes" %}
|
|
DATABASE__URL=sqlite://db.sqlite3
|
|
{% endif %}
|
|
{% if cookiecutter.use_auth == "yes" %}
|
|
# Auth
|
|
JWT__SECRET=change-me-in-production
|
|
JWT__ALGORITHM=HS256
|
|
JWT__EXPIRE_MINUTES=60
|
|
{% endif %}
|
|
|
|
# IP whitelist (no hardcoded production IPs — override in production)
|
|
IP_WHITELIST=["127.0.0.1", "::1"] |