-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample_local_settings_outside_git.py
59 lines (42 loc) · 1.63 KB
/
sample_local_settings_outside_git.py
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
# Sample settings, adapt this to your local deployment
# Many can also be set via env vars
#
# See settings.py
SECRET_KEY = None # Use: python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
DEBUG = False
# If sending emails:
ADMINS = [ ('Admin', 'archive@localhost') ]
DEFAULT_FROM_EMAIL = '[email protected]'
# Default: local SQLite file
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'archiveooo',
# 'USER': 'archiveooouser',
# 'PASSWORD': '',
# 'CONN_MAX_AGE': 600,
# }
#}
# Optional. Create folders if not in use (see below).
S3_BUCKET=None # "archive-ooo-public"
# These are used both to create VMs and to upload to S3
AWS_PROFILE = None
AWS_ACCESS_KEY_ID = None
AWS_SECRET_ACCESS_KEY = None
AWS_REGION = 'us-west-2'
AWS_KEYPAIR_NAME = 'for_archive_player_vms'
SSH_EXTRA_ROOT_ACCESS_KEY_FOR_VMS = '' # 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZg91lJwh6lhAdK3GmxVKJD/LPFbPRMGiqCtR7/YWhD jacopo'
# Optionally, protect VM spawning with reCAPTCHA
RECAPTCHA_SITE_KEY=None
RECAPTCHA_SECRET_KEY=None
# Optionally, upload images to dockerhub too
DOCKERHUB_REPO = None # 'archiveooo/pub'
DOCKERHUB_USERNAME = None # 'archiveooouser'
DOCKERHUB_PASSWORD = None
# See settings.py for other values, most importantly:
IMAGES_DOWNLOAD_ROOT = '/var/www/html/dockerimg/'
PUBLIC_FILES_ROOT = '/var/www/html/public_files/'
# These are used to allow the VM to pingback
# settings.py tries to auto-determine them, but it's probably best to configure them here
#MY_DOMAIN_NAME = 'archive.ooo'
#MY_IP4 = "1.2.3.4"