blob: ef895ba0a17e372eefada4480e27c49eede3acfe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
from uuid import UUID
host = '0.0.0.0'
port = 80
debug = True
PG_URI = 'postgres://postgres:secure@pg'
APP_SECRET = UUID('8036587d-11ea-4c59-af9b-9da52eded1bc').bytes
NGX_IMAGE_PATH = '/var/ngx_img/{}'
NGX_IMAGE_URL = '/ngx_img/{}'
CUT_SIZES = [
(256, 256),
(512, 512),
(1024, 1024),
(2048, 2048),
]
DELETE_FILE_ON_DELETE = False
NOT_FOUND_IMAGE_CONTENT_TYPE = 'image/jpeg'
with open('not-found.jpg', 'rb') as f:
NOT_FOUND_IMAGE = f.read()
|