Improve template #1
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
# `SERVICE_DATABASE_URL`
|
# `SERVICE_DATABASE_URL`
|
||||||
|
|
||||||
*Optional*, default value: `psql://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}`
|
*Optional*, default value: `asyncpg://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}`
|
||||||
|
|
||||||
# `SERVICE_TIMEZONE`
|
# `SERVICE_TIMEZONE`
|
||||||
|
|
||||||
|
@ -7,13 +7,13 @@ service:
|
|||||||
token_expiration_days: 28
|
token_expiration_days: 28
|
||||||
cors_origins:
|
cors_origins:
|
||||||
- "http://localhost:5000"
|
- "http://localhost:5000"
|
||||||
- "https://example.com"
|
- "https://{{ cookiecutter.project_slug }}.xyz"
|
||||||
|
|
||||||
environment: "local"
|
environment: "local"
|
||||||
log_level: "DEBUG"
|
log_level: "DEBUG"
|
||||||
|
|
||||||
redis_url: "redis://redis:6379"
|
redis_url: "redis://redis:6379"
|
||||||
database_url: "psql://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}"
|
database_url: "asyncpg://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}"
|
||||||
|
|
||||||
timezone: "UTC"
|
timezone: "UTC"
|
||||||
sentry_url: null
|
sentry_url: null
|
||||||
|
@ -24,7 +24,7 @@ class ProjectSettings(ProjectBaseSettings):
|
|||||||
|
|
||||||
# Background task config
|
# Background task config
|
||||||
redis_url: RedisDsn = Field(RedisDsn(url="redis://redis:6379"))
|
redis_url: RedisDsn = Field(RedisDsn(url="redis://redis:6379"))
|
||||||
database_url: str = Field("psql://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}")
|
database_url: str = Field("asyncpg://{{ cookiecutter.project_slug }}:{{ cookiecutter.project_slug }}@postgres:5432/{{ cookiecutter.project_slug }}")
|
||||||
|
|
||||||
# Various
|
# Various
|
||||||
timezone: str = Field(
|
timezone: str = Field(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user