forked from Subscribie/subscribie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.example
89 lines (68 loc) · 2.69 KB
/
.env.example
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
#Only values in uppercase are actually stored in the config object later on. So make sure to use uppercase letters for your config keys.
# Change FLASK_ENV=live for live
FLASK_ENV=development
# Software as a service (SAAS)
SAAS_URL=https://subscribie.co.uk/
# SAAS_API_KEY is to allow subscribie platform to send authenticated
# api requests to subscribie shops created by the shop builder.
SAAS_API_KEY=changeme
SAAS_ACTIVATE_ACCOUNT_PATH=/activate
# For testing this repo in isolation, SUBSCRIBIE_REPO_DIRECTORY can be './'
# for production, SUBSCRIBIE_REPO_DIRECTORY should be wherever the repo
# is cloned to
SUBSCRIBIE_REPO_DIRECTORY=./
SQLALCHEMY_TRACK_MODIFICATIONS=False
SQLALCHEMY_DATABASE_URI="sqlite:////tmp/data.db"
SECRET_KEY="random string. e.g. echo -e 'from os import urandom\\nprint urandom(25)' | python"
DB_FULL_PATH="/tmp/data.db"
MODULES_PATH="./modules/"
TEMPLATE_BASE_DIR="./subscribie/themes/"
THEME_NAME="jesmond"
CUSTOM_PAGES_PATH="./subscribie/custom_pages/"
UPLOADED_IMAGES_DEST="./subscribie/static/"
UPLOADED_FILES_DEST="./subscribie/uploads/"
# Default 50Mb upload limit
MAX_CONTENT_LENGTH="52428800"
SUCCESS_REDIRECT_URL="http://127.0.0.1:5000/complete_mandate"
THANKYOU_URL="http://127.0.0.1:5000/thankyou"
EMAIL_LOGIN_FROM="[email protected]"
EMAIL_QUEUE_FOLDER="/var/email-queue/"
SERVER_NAME="127.0.0.1:5000"
# Cookie policies
#SESSION_COOKIE_SECURE=True
#SESSION_COOKIE_HTTPONLY=True
#SESSION_COOKIE_SAMESITE=None
MAIL_DEFAULT_SENDER="[email protected]"
STRIPE_LIVE_PUBLISHABLE_KEY=
STRIPE_LIVE_SECRET_KEY=
STRIPE_TEST_PUBLISHABLE_KEY=
STRIPE_TEST_SECRET_KEY=
# Internal server where shop should send its stripe connect account id to. See https://github.com/Subscribie/subscribie/issues/352
STRIPE_CONNECT_ACCOUNT_ANNOUNCER_HOST=http://127.0.0.1:8001
# Google oauth (signin / up with Google
GOOGLE_CLIENT_ID=???.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=???
GOOGLE_REDIRECT_URI="http://127.0.0.1:5000/google-oauth2callback/"
GOOGLE_RESPONSE_TYPE=code
GOOGLE_SCOPE="email openid profile"
# For development:
HONEYCOMB_API_KEY=
# Python log levels: DEBUG, INFO, WARNING, ERROR, CRITICAL
# See https://docs.python.org/3/howto/logging.html
PYTHON_LOG_LEVEL=DEBUG
# Playwright testing
PLAYWRIGHT_HOST=http://127.0.0.1:5000/
PLAYWRIGHT_HEADLESS=true
#rename shop variables
PATH_TO_SITES="/path/to/sites/subscribie/"
PATH_TO_RENAME_SCRIPT="/path/to/sites/subscribie/rename-shop.sh"
SUBSCRIBIE_DOMAIN="subscriby.shop"
PRIVATE_KEY="/tmp/private.pem"
PUBLIC_KEY="/tmp/public.pem"
# Optional
TELEGRAM_TOKEN=
TELEGRAM_CHAT_ID=
TELEGRAM_PYTHON_LOG_LEVEL=ERROR
# Environment Settings for tests
TEST_SHOP_OWNER_LOGIN_URL=http://127.0.0.1:5000/auth/login