Adding config template
This commit is contained in:
30
config.yml.tmpl
Normal file
30
config.yml.tmpl
Normal file
@ -0,0 +1,30 @@
|
||||
# Base URL configuration
|
||||
base_url = {{ env "BASE_URL" }}
|
||||
|
||||
# Admin user configuration
|
||||
admin_username = {{ env "ADMIN_USERNAME" }}
|
||||
admin_password = {{ secret "admin_password" }}
|
||||
|
||||
# Database configuration
|
||||
database_url = postgres://{{ secret "db_user" }}:{{ secret "db_password" }}@db/{{ secret "db_name" }}?sslmode=disable
|
||||
run_migrations = {{ or (env "RUN_MIGRATIONS") "1" }}
|
||||
|
||||
# HTTP server configuration
|
||||
listen_addr = "0.0.0.0:8080"
|
||||
root_path = "/"
|
||||
|
||||
# Logging configuration
|
||||
log_level = {{ or (env "LOG_LEVEL") "info" }}
|
||||
log_format = {{ or (env "LOG_FORMAT") "text" }}
|
||||
|
||||
# Security configuration
|
||||
csp_header = {{ or (env "CSP_HEADER") "default-src 'self';" }}
|
||||
hsts_max_age = {{ or (env "HSTS_MAX_AGE") "31536000" }}
|
||||
x_frame_options = {{ or (env "X_FRAME_OPTIONS") "DENY" }}
|
||||
|
||||
# Worker configuration
|
||||
worker_pool_size = {{ or (env "WORKER_POOL_SIZE") "5" }}
|
||||
|
||||
# Metrics and monitoring
|
||||
metrics_enabled = {{ or (env "METRICS_ENABLED") "true" }}
|
||||
|
Reference in New Issue
Block a user