54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
http:
|
|
hostname: ""
|
|
port: 8000
|
|
readTimeout: "5s"
|
|
writeTimeout: "10s"
|
|
idleTimeout: "2m"
|
|
shutdownTimeout: "10s"
|
|
tls:
|
|
enabled: false
|
|
certificate: ""
|
|
key: ""
|
|
|
|
app:
|
|
name: "Pagoda"
|
|
# We manually set this rather than using the HTTP settings in order to build absolute URLs for users
|
|
# since it's likely your app's HTTP settings are not identical to what is exposed by your server.
|
|
host: "http://localhost:8000"
|
|
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:
|
|
publicFile: "4380h"
|
|
|
|
database:
|
|
driver: "sqlite3"
|
|
connection: "dbs/main.db?_journal=WAL&_timeout=5000&_fk=true"
|
|
# $RAND will be automatically replaced with a random value.
|
|
# memdb is more robust for an in-memory database rather than :memory: because the latter has the potential
|
|
# retain data even after you close and re-open the connection.
|
|
testConnection: "file:/$RAND?vfs=memdb&_timeout=1000&_fk=true"
|
|
|
|
files:
|
|
directory: "uploads"
|
|
|
|
tasks:
|
|
goroutines: 1
|
|
releaseAfter: "15m"
|
|
cleanupInterval: "1h"
|
|
shutdownTimeout: "10s"
|
|
|
|
mail:
|
|
hostname: "localhost"
|
|
port: 25
|
|
user: "admin"
|
|
password: "admin"
|
|
fromAddress: "admin@localhost"
|