-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathsettings.yaml.example
111 lines (88 loc) · 3.48 KB
/
settings.yaml.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
---
# Settings for Subscribie
# This is the example settings file for Subscribie
# If you see settings errors when starting Subscribie
# re-read the error message. Also, looking at "settings.py"
# will help because that defines the schema (types) expected
# for each setting.
# For production, set FLASK_ENV to live
FLASK_ENV: development
# Cookie policies
# SESSION_COOKIE_SECURE: True
# SESSION_COOKIE_HTTPONLY: True
# SESSION_COOKIE_SAMESITE: None
# Sentry_sdk_dsn
SENTRY_SDK_DSN: "https://changeme@changeme.ingest.de.sentry.io/123456789"
SENTRY_SDK_SESSION_REPLAY_ID: "changeme"
# 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: "hello@example.com"
EMAIL_QUEUE_FOLDER: "/var/email-queue/"
SERVER_NAME: "127.0.0.1:5000"
PERMANENT_SESSION_LIFETIME: "1800"
MAIL_DEFAULT_SENDER: "noreply@example.com"
STRIPE_LIVE_PUBLISHABLE_KEY: "pk_live_changeme"
STRIPE_LIVE_SECRET_KEY: "sk_live_changeme"
STRIPE_TEST_PUBLISHABLE_KEY: "pk_test_changeme"
STRIPE_TEST_SECRET_KEY: "sk_test_changeme"
# 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
#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"
# Currencies
SUPPORTED_CURRENCIES: "GBP,USD,EUR"
# Anti spam
ANTI_SPAM_SHOP_NAMES_MODEL_FULL_PATH: "/path/to/classifier.pkl"
# Optional
TELEGRAM_TOKEN:
TELEGRAM_CHAT_ID:
TELEGRAM_PYTHON_LOG_LEVEL: ERROR
# Environment Settings for tests
TEST_SHOP_OWNER_EMAIL_ISSUE_704: admin@example.com
TEST_SUBSCRIBER_EMAIL_USER: test@example.co.uk
TEST_SHOP_OWNER_LOGIN_URL: http://127.0.0.1:5000/auth/login
PYTHON_LOG_LEVEL: DEBUG
PLAYWRIGHT_HOST: http://127.0.0.1:5000/
PLAYWRIGHT_HEADLESS: true
PLAYWRIGHT_SLOWMO: 500
PLAYWRIGHT_MAX_RETRIES: 1
# Email settings for tests
IMAP_SEARCH_UNSEEN: "1"
IMAP_SEARCH_SINCE_DATE: 21-Aug-2024
EMAIL_SEARCH_API_HOST: email-search-api.example.com
# SHOP OWNER EMAIL SETTINGS for tests
SHOP_OWNER_EMAIL_HOST: email.example.co.uk
SHOP_OWNER_EMAIL_USER: alice@example.co.uk
SHOP_OWNER_MAGIC_LOGIN_IMAP_SEARCH_SUBJECT: Subscribie Magic Login
SHOP_OWNER_EMAIL_PASSWORD: secret
# SUBSCRIBER EMAIL Settings for tests
SUBSCRIBER_EMAIL_HOST: email.example.co.uk
SUBSCRIBER_EMAIL_USER: test@example.co.uk
SUBSCRIBER_EMAIL_PASSWORD: secret
RESET_PASSWORD_IMAP_SEARCH_SUBJECT: Password Reset