-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
100 lines (86 loc) · 1.59 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
# Logger configuration.
logger:
# Log level.
#
# Value: emerg | alert | crit | error | warning | notice | info | debug
level: debug
# Logger backends.
#
# Value: array
backends:
-
# Backend type.
#
# Value: file | syslog
type: file
# File backend configuration.
file:
# Destination.
#
# Value: stdout | stderr | /path/to/file
destination: stderr
# Database configuration.
db:
# Storage type.
#
# Value: sql
type: sql
# SQL DB configuration.
sql:
# Driver
#
# Value: sqlite3 | mysql | pgx
driver: sqlite3
# DSN
#
# Value: string
dsn: ./db.sqlite3
# Migrate automatically on start
#
# Value: boolean
auto-migrate: true
# Hasher configuration.
hasher:
# Alphabet.
#
# Value: string
alphabet: 0123456789abcdef
# Salt.
#
# Value: string
salt: No paste on Sunday. No blasted pastes today! No, sir. Not one single bloody paste. Not one!
# Minimal hash length.
#
# Value: uint
min-length: 8
# WebServer configuration.
webserver:
# Static assets path on disk.
#
# Value: embedded | /path/to/dir
static-path: ./pkg/webserver/static
# Template files path on disk.
#
# Value: embedded | /path/to/dir
templates-path: ./pkg/webserver/templates
# Listen address.
#
# Value: host:port
listen-address: 0.0.0.0:1337
# Proxy header.
#
# Value: string
proxy-header:
# TLS certificate.
#
# Value: /path/to/file
tls-cert:
# TLS key.
#
# Value: /path/to/file
tls-key:
# Relative URL root.
#
# Value: string
relative-url-root: /p