-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml.sample
120 lines (103 loc) · 2.43 KB
/
config.yaml.sample
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
---
# Copy and edit this sample configuration to config.yaml.
server:
domain: localhost
url: http://localhost:31232
bind: 0.0.0.0
port: 31232
# the sqlite database file
database: anpaste.sqlite
# the strftime() format string used to format timestamps
timestamp: '%d %B %Y %H:%M:%S'
# admin panel password, this will change later with user management
admin_pw: changeme
# the IRC announcements is sortof a undocumented feature right now
announce:
channel: null
udp_proto: udp4
host: 127.0.0.1
port: 7272
password: pw
session:
secret: changeme
maxAge: 86400000000
# defaults for various webui settings that are remembered in the session
defaults:
show_line_numbers: false # display the line numbers by default
show_theme: Default # default syntax highlighter theme to use
option_tabkeys: false # insert tabs in textarea
option_language: plain # paste language to use by default
option_expire: 0
option_private: false
option_wordids: false # xkcd word ids
option_announce: false
# settings for the public pastes list
index:
max_lines: 40 # display how many lines per paste
per_page: 2 # pastes per page
# REST API settings
api:
max: 10 # max number of pastes to list
themes:
['Default', 'Midnight', 'Django', 'Eclipse', 'Emacs', 'FadeToGrey', 'MDUltra', 'RDark', 'Zenburn']
expire:
'never': 0
'half an hour': 1800
'one day': 86400
'a week': 604800
'one month': 2678400
# settings for the post-via-TCP socket feature
tcpsrv:
port: 55555
bind:
['0.0.0.0', '::1']
# setup akismet for spam detection, is not used if apiKey is null
akismet:
blog: 'http://example.com'
apiKey: null
proxy: null
logger:
console:
silent: true
level: info
colorize: true
timestamp: true
file:
silent: true
level: info
timestamp: true
filename: anpaste.log
maxsize: 5368709120
json: false
#
# development, test and production are merged with all above
#
development:
database: anpaste_dev.sqlite
logger:
console:
level: trace
silent: false
colorize: true
timestamp: false
file:
silent: true
test:
database: anpaste_test.sqlite
logger:
console:
silent: true
file:
level: trace
silent: false
timestamp: true
filename: anpaste_test.log
production:
logger:
console:
silent: true
file:
level: info
silent: false
timestamp: true
filename: anpaste.log