-
Notifications
You must be signed in to change notification settings - Fork 2
/
local_settings.py.example
46 lines (37 loc) · 1.26 KB
/
local_settings.py.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
# Database settings
# Harnas now uses only 'default' and only postgresql is officially supported.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
# Used to store results of conversion markdown files to html/pandoc
# done by pandoc.
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/var/tmp/harnas_cache',
}
}
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'w^f_54-j_3s^(e_+63d=vb7hff6%0q8^c^fvfmj7i0=^e9cos6'
DEBUG = True
ALLOWED_HOSTS = []
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Hera specific settings, see: https://github.com/zielmicha/hera
HERA_USER = ""
HERA_API_KEY = ""
HERA_URL = "http://api.hera.dev/"
HERA_AUTH = (HERA_USER, HERA_API_KEY)
# Path to directory in which Harnaś should store task files
# It must exist already and it must be writable by Harnaś
TASK_STORAGE_PREFIX = '/harnas/task/'
SITE_URL = 'harnas.ksi.ii.uj.edu.pl/'
# Length of token, which is used to authorize Hera callbacks
# Should be set once, Submit model depends on this var
WEBHOOK_SECRET_LENGTH = 200