-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sample
More file actions
95 lines (74 loc) · 2.67 KB
/
env.sample
File metadata and controls
95 lines (74 loc) · 2.67 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
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
SECRET_KEY=
SERVER_NAME='127.0.0.1:5000'
DATABASE_URL=postgresql+psycopg2://pyfedi:pyfedi@127.0.0.1/pyfedi
MAIL_SERVER=''
MAIL_PORT=0
# Remove the below line if not using TLS - do not set it to False
MAIL_USE_TLS=True
MAIL_USERNAME=''
MAIL_PASSWORD=''
MAIL_FROM=''
ERRORS_TO=''
CACHE_TYPE='FileSystemCache'
CACHE_DIR='/dev/shm/pyfedi'
CELERY_BROKER_URL='redis://localhost:6379/1'
CACHE_REDIS_URL='redis://localhost:6379/1'
BOUNCE_ADDRESS=''
BOUNCE_HOST=''
BOUNCE_USERNAME=''
BOUNCE_PASSWORD=''
FLASK_APP = 'pyfedi.py'
SENTRY_DSN = ''
# For real-time notifications. See https://codeberg.org/PieFed/piefed-notifs
NOTIF_SERVER = 'https://your-domain.tld'
AWS_REGION = 'ap-southeast-2'
CLOUDFLARE_API_TOKEN = ''
CLOUDFLARE_ZONE_ID = ''
IPINFO_TOKEN = ''
# leave at 0 to automatically fetch core count
NUM_CPU = 0
STRIPE_SECRET_KEY = ''
STRIPE_PUBLISHABLE_KEY = ''
STRIPE_MONTHLY_SMALL = ''
STRIPE_MONTHLY_SMALL_TEXT = 'Pay $5 per month'
STRIPE_MONTHLY_BIG = ''
STRIPE_MONTHLY_BIG_TEXT = 'Pay $10 per month'
WEBHOOK_SIGNING_SECRET = ''
ENABLE_ALPHA_API = 'true'
# CORS configuration for API routes (defaults to '*' if not set)
CORS_ALLOW_ORIGIN = '*'
PAGE_LENGTH = 75
# Send account details to this ldap server
LDAP_SERVER = '127.0.0.1'
LDAP_PORT = 389
LDAP_USE_SSL = 0
LDAP_USE_TLS = 0
LDAP_WRITE_ENABLE = 0
LDAP_WRITE_BIND_DN = 'cn=admin,dc=piefed,dc=social'
LDAP_WRITE_BIND_PASSWORD = 'your password here'
LDAP_BASE_DN = 'ou=users,dc=piefed,dc=social'
LDAP_WRITE_USER_FILTER = '(uid={username})'
LDAP_WRITE_ATTR_USERNAME = 'uid'
LDAP_WRITE_ATTR_EMAIL = 'mail'
LDAP_WRITE_ATTR_PASSWORD = 'userPassword'
MEDIA_IMAGE_MAX_DIMENSION = 2000
MEDIA_IMAGE_FORMAT = ''
MEDIA_IMAGE_QUALITY = 90
MEDIA_IMAGE_THUMBNAIL_FORMAT = 'WEBP'
MEDIA_IMAGE_THUMBNAIL_QUALITY = 93
MEDIA_IMAGE_MEDIUM_FORMAT = 'JPEG'
MEDIA_IMAGE_MEDIUM_QUALITY = 90
# number of months to keep local user voting data, defaults to 6 if not set. Use -1 to never delete.
# KEEP_LOCAL_VOTE_DATA_TIME = 6
# number of months to keep remote user voting data, defaults to 6 if not set. Use -1 to never delete.
# KEEP_REMOTE_VOTE_DATA_TIME = 6
# If you have a header that contains the country code, set it here, if available this will be used rather than the IPInfo information.
# For example if you want to use Cloudflare's IP geolocation, uncomment the following line
# COUNTRY_SOURCE_HEADER='CF-IPCountry'
# Stop comments and votes on posts after X months and save their data to S3/disk to minimize DB size growth. 0 to disable.
# ARCHIVE_POSTS = 0
# For use with Libretranslate
TRANSLATE_ENDPOINT = ''
TRANSLATE_KEY = ''
# Federation will pause once this much redis memory is used. Default is 200 MB. -1 to disable memory check.
REDIS_MEMORY_LIMIT = 200000000