-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example
More file actions
61 lines (44 loc) · 1.41 KB
/
Copy pathconfig.example
File metadata and controls
61 lines (44 loc) · 1.41 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
# Statement for enabling the development environment
DEBUG = True
# Define the application directory
import os
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
# Photo archive directory
# local
LOCALARCHIVEPATH='static/cigarbox'
REMOTEARCHIVEPATH='static/cigarbox'
# API
UPLOAD_FOLDER='/tmp/cigarbox'
ALLOWED_EXTENSIONS = ['jpg']
# For directory tagging, ignore these directories/tags
IGNORETAGS = ['Users','Pictures']
# AWS Credentials
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
S3_BUCKET_NAME=''
# Should we store your originals publicly? Probably not
AWSPOLICY = 'private'
# Define the database - we are working with
# SQLite for this example
DATABASE={'name' :'photos.db',
'engine':'peewee.SqliteDatabase'}
# Secrete Key
SECRET_KEY=''
PRIVACYFLAGS = {'public':0, 'friends':1, 'family':2, 'private':8, 'disabled':9}
PER_PAGE=100
PORT=9600
SITEURL = 'http://127.0.0.1:{}'.format(PORT)
# Application threads. A common general assumption is
# using 2 per available processor cores - to handle
# incoming requests using one and performing background
# operations using the other.
THREADS_PER_PAGE = 2
# Enable protection agains *Cross-site Request Forgery (CSRF)*
CSRF_ENABLED = True
# Use a secure, unique and absolutely secret key for
# signing the data.
CSRF_SESSION_KEY = 'secret'
# Secret key for signing cookies
SECRET_KEY = 'secret'
# MAX Upload Size
MAX_CONTENT_LENGTH = 16 * 1024 * 1024