forked from epandurski/cmbarter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.env
64 lines (51 loc) · 2.63 KB
/
.env
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
# Set this to the number of worker processes for handling requests --
# a positive integer generally in the 2-4 * $NUM_CORES range. You may
# want to vary this a bit to find the best for your particular
# workload.
WEB_CONCURRENCY=1
# Set this to your site domain name.
CMBARTER_HOST=localhost
# Set this to the PostgreSQL database connection string.
CMBARTER_DSN=host=db dbname=cmbarter user=postgres password=mysecretpassword
# Leave this variable empty or set it to a random, long, secret string.
CMBARTER_SECRET_KEY=
# This should point to a page telling more about the site.
CMBARTER_ABOUT_US_URL=https://sourceforge.net/projects/cmb/
# This should be "False" in production.
CMBARTER_DEBUG_MODE=False
# Sign-up and log-in settings:
CMBARTER_MIN_PASSWORD_LENGTH=10
CMBARTER_SHOW_CAPTCHA_ON_SIGNUP=True
CMBARTER_SHOW_CAPTCHA_ON_REPETITIVE_LOGIN_FAILURE=True
# By default, CMB is configured to show CAPTHCA on sign-up, and after
# five unsuccessful attempts to log-in. If you have not altered the
# default behavior, you should obtain your own public/private key pair
# from www.google.com/recaptcha, and put it here:
CMBARTER_RECAPTCHA_PUBLIC_KEY=6Lc902MUAAAAAJL22lcbpY3fvg3j4LSERDDQYe37
CMBARTER_RECAPTCHA_PIVATE_KEY=6Lc902MUAAAAAN--r4vUr8Vr7MU1PF16D9k2Ds9Q
# If a non-empty string is set as registration secret, CMB will
# require a registration key for users to sign up. In this case
# "generate_regkeys.py" can be used to generate user registration
# keys. Also, an URL can be specified that redirects to a web page
# where users are told how to obtain a registration key.
CMBARTER_REGISTRATION_SECRET=
CMBARTER_REGISTRATION_KEY_HELP_URL=
# The time zone of your users. For example: Europe/Rome
CMBARTER_DEFAULT_USERS_TIME_ZONE=
# Set this to a page where users can search for trusted partners.
CMBARTER_SEARCH_PARTNERS_URL=
# This is the maximum size in bytes for users' uploaded photographs.
CMBARTER_MAX_IMAGE_SIZE=716800
# This is the maximum amount of pixels (width * height) in users'
# uploaded photographs.
CMBARTER_MAX_IMAGE_PIXELS=30000000
# By default, CMB is configured to maintain a whitelist of "good" IP
# addresses. This auto-generated whitelist can be used to configure
# your firewall to protect your web-servers from DoS attacks. To be
# able to reliably determine the IP addresses of your clients, CMB
# should know the IP address(es) of all reverse proxy servers in your
# network. Normally, here you should substitute 'proxy' with the name
# or the IP of your reverse-proxy server. If you have more than one
# reverse-proxy in your network, you should pass them all like this:
# hosts('proxy1', 'proxy2', 'proxy3')
CMBARTER_REVERSE_PROXIES=hosts('proxy')