-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
95 lines (93 loc) · 2.34 KB
/
config.yaml
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
# wootpaste configuration
# NOTE: This file will be merged with local.yaml,
# place instance specific configurations in local.yaml
---
database:
uri: 'sqlite:///wootpaste.db' # do not forget to init: 'alembic upgrade head'
# irc announcements use rubybot webservice to issue a 'say' command
# infos: https://github.com/4poc/rbot/wiki/Web-Service
irc_announce:
active: false
channel: '#test'
username: 'changeme'
password: 'changeme'
uri: 'http://example.com/dispatch'
# configure logging using the python logging dictschema:
# docs: http://docs.python.org/2/library/logging.config.html#logging-config-dictschema
# the relevant loggers are: wootpaste, sqlalchemy and flask
logger:
version: 1
formatters:
brief:
format: '%(message)s'
precise:
format: '%(asctime)s %(levelname)-8s %(name)-15s %(message)s'
datefmt: '%Y-%m-%d %H:%M:%S'
loggers:
# if set to DEBUG will log SQL Queries:
'sqlalchemy.engine.base.Engine':
level: ERROR
handlers: [console]
passlib:
level: ERROR
handlers: [console]
flask:
level: DEBUG
handlers: [console]
wootpaste:
level: DEBUG
handlers: [console]
handlers:
console:
class : logging.StreamHandler
formatter : precise
level : DEBUG
stream : ext://sys.stdout
paste:
spam_ml: false
max_lines: 30
primary_languages:
- auto
- text
- go
- rust
- d
- c
- cpp
- java
- clojure
- haskell
- perl
- python
- rb
- php
- bash
- sql
- lua
- tcl
- dart
- js
- css
- html
- xml
- yaml
- json
- irc
# the following options are merged with the flask instance's config:
# flask makes those options available in jinja2 templates using config['TITLE'] etc.
flask:
DEBUG: false
TITLE: 'your wootpaste instance title'
SECRET_KEY: 'if you dont change this you get hacked!'
SESSION_COOKIE_NAME: 'wps'
PERMANENT_SESSION_LIFETIME: 31536000
MAIL_SERVER: 'mail.example.org'
MAIL_PORT: 25
MAIL_USE_TLS: false
MAIL_USE_SSL: false
MAIL_USERNAME: 'user'
MAIL_PASSWORD: 'pass'
password_reset:
sender: '[email protected]'
subject: 'Password Reset - wootpaste'
content: "To reset your password visit this link:\n{url}\n\nOr use this token: {token}\n\nThanks for using wootpaste!"