- Always regenerate Museum configuration on startup to enable runtime S3 credential changes - Improve S3 configuration logging and validation for Cloudflare R2 endpoints - Update SMTP configuration to use SMTPS port 2465 with TLS encryption - Fix Caddy proxy headers to properly forward client information - Add startup.log for enhanced troubleshooting - Update build instructions and changelog for version 0.4.3
71 lines
1.4 KiB
YAML
71 lines
1.4 KiB
YAML
server:
|
|
host: "0.0.0.0"
|
|
port: 8080
|
|
baseURL: "%%APP_ORIGIN%%"
|
|
cors:
|
|
origins: ["%%APP_ORIGIN%%"]
|
|
sessionSecret: "%%SESSION_SECRET%%"
|
|
|
|
database:
|
|
host: "%%POSTGRESQL_HOST%%"
|
|
port: %%POSTGRESQL_PORT%%
|
|
user: "%%POSTGRESQL_USERNAME%%"
|
|
password: "%%POSTGRESQL_PASSWORD%%"
|
|
database: "%%POSTGRESQL_DATABASE%%"
|
|
ssl: true
|
|
sslMode: "require"
|
|
maxOpenConns: 25
|
|
maxIdleConns: 25
|
|
connMaxLifetime: "1h"
|
|
|
|
s3:
|
|
are_local_buckets: false
|
|
use_path_style_urls: true
|
|
hot_storage:
|
|
primary: b2-eu-cen
|
|
secondary: b2-eu-cen
|
|
derived-storage: b2-eu-cen
|
|
b2-eu-cen:
|
|
endpoint: "%%S3_ENDPOINT%%"
|
|
region: "%%S3_REGION%%"
|
|
bucket: "%%S3_BUCKET%%"
|
|
key: "%%S3_ACCESS_KEY%%"
|
|
secret: "%%S3_SECRET_KEY%%"
|
|
path_prefix: "%%S3_PREFIX%%"
|
|
|
|
email:
|
|
smtp:
|
|
host: "%%MAIL_SMTP_SERVER%%"
|
|
port: %%MAIL_SMTP_PORT%%
|
|
user: "%%MAIL_SMTP_USERNAME%%"
|
|
password: "%%MAIL_SMTP_PASSWORD%%"
|
|
secure: true
|
|
from:
|
|
email: "%%MAIL_FROM%%"
|
|
name: "%%MAIL_FROM_DISPLAY_NAME%%"
|
|
|
|
auth:
|
|
jwtSecret: "%%JWT_SECRET%%"
|
|
tokenExpiry: 86400
|
|
sessionSecret: "%%SESSION_SECRET%%"
|
|
|
|
logging:
|
|
level: "info"
|
|
format: "text"
|
|
|
|
# Additional settings based on Museum requirements
|
|
keygen:
|
|
master: "%%MASTER_KEY%%"
|
|
|
|
payments:
|
|
enabled: false
|
|
|
|
metadata:
|
|
localPath: "/app/data/storage/metadata"
|
|
|
|
tempDirectory: "/app/data/storage/temp"
|
|
|
|
memoryCache:
|
|
enabled: true
|
|
size: 100
|