personal-site/config/config.yaml
Mike Stefanello a096abd195 Default to SQLite rather than Postgres & Redis (#72)
* Initial rough draft switch to sqlite.

* Rewrote cache implemenation.

* Provide typed tasks.

* Task cleanup.

* Use same db for tasks.

* Provide task queue registration and service container injection.

* Added optional delay to tasks. Pool buffers when encoding.

* Added tests for the task client and runner.

* Added handler examples for caching and tasks.

* Cleanup and documentation.

* Use make in workflow.

* Updated documentation.

* Updated documentation.
2024-06-22 10:34:26 -04:00

44 lines
824 B
YAML

http:
hostname: ""
port: 8000
readTimeout: "5s"
writeTimeout: "10s"
idleTimeout: "2m"
tls:
enabled: false
certificate: ""
key: ""
app:
name: "Pagoda"
environment: "local"
# Change this on any live environments
encryptionKey: "?E(G+KbPeShVmYq3t6w9z$C&F)J@McQf"
timeout: "20s"
passwordToken:
expiration: "60m"
length: 64
emailVerificationTokenExpiration: "12h"
cache:
capacity: 100000
expiration:
staticFile: "4380h"
page: "24h"
database:
driver: "sqlite3"
connection: "dbs/main.db?_journal=WAL&_timeout=5000&_fk=true"
testConnection: ":memory:?_journal=WAL&_timeout=5000&_fk=true"
tasks:
pollInterval: "1s"
maxRetries: 10
goroutines: 1
mail:
hostname: "localhost"
port: 25
user: "admin"
password: "admin"
fromAddress: "admin@localhost"