forked from HackThisSite/CryptoPaste
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.ini.example
More file actions
69 lines (44 loc) · 1.17 KB
/
config.ini.example
File metadata and controls
69 lines (44 loc) · 1.17 KB
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
[global]
; Set this to true if you want to enable Silex developer tools
development = false
; Increase this for more logging verbosity. Only needed if developing CryptoPaste.
log_level = warn
; Maximum body length in bytes
; Default 3145728 = 3MB
body_max_length = 3145728
; Session/cookie lifetime
cookie_lifetime = 86400
[ui]
; href=".." content of an <a> tag in the FAQ
admin_contact = mailto:admin@mywebsite.com
; Show total pastes in the footer
; Runs a DB query on every page load
show_paste_total = true
; Show expirations on view paste
show_expiry = true
[db]
; Driver to use
; Valid settings: mysql, sqlite
driver = mysql
; IF USING MYSQL DRIVER:
; Hostname or IP of MySQL server
host = localhost
; [optional] Port of MySQL server
; port = 3306
; MySQL username
username = cryptopaste
; MySQL password
password = secret
; MySQL database name
; User must have rights: SELECT, INSERT, UPDATE, DELETE
database = cryptopaste
; [optional] Table prefix
; table_prefix = cryp_
; IF USING SQLITE DRIVER:
; Path to SQLite DB file
; path = ../resources/cryptopaste.db
[hashids]
; Length of paste URL hash
length = 8
; Salt to randomize the hash
salt = reallylongsaltvalue