forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_settings.example.py
170 lines (154 loc) · 6.57 KB
/
local_settings.example.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#DEBUG = False
#SECRET_KEY = '' # will be autogenerated in secret_key.py if not specified here
BASE_URL = 'http://localhost:8000/' # required!
#SERVICE_BASE_URL = 'http://plus:8000'
#GITMANAGER_URL = 'https://gitmanager.cs.aalto.fi' or 'https://<gitmanager_host>'
#SERVER_EMAIL = '[email protected]'
#ADMINS = (
# ('Your Name', '[email protected]'),
#)
#from os import environ
# Authentication and authentication library settings
# see https://pypi.org/project/aplus-auth/ for explanations
#APLUS_AUTH_LOCAL = {
# "PRIVATE_KEY": environ.get("PRIVATE_KEY"),
# "PUBLIC_KEY": environ.get("PUBLIC_KEY"),
# "TRUSTING_REMOTES": {
# "gitmanager.example.com": "gitmanager",
# "grader.example.com": "grader",
# },
# "UID_TO_KEY": {
# "gitmanager": """-----BEGIN PUBLIC KEY-----
#...
#-----END PUBLIC KEY-----
#""",
# "grader": """-----BEGIN PUBLIC KEY-----
#...
#-----END PUBLIC KEY-----
#""",
# },
# #"DISABLE_JWT_SIGNING": False,
# #"DISABLE_LOGIN_CHECKS": False,
#}
# The organization this instance is deployed at.
# Can be used to identify users from home university by comparing this to
# organization information received from Haka login.
#LOCAL_ORGANIZATION = 'aalto.fi'
## Branding
#BRAND_NAME = 'Your brand name (default is A+)'
#BRAND_NAME_LONG = 'Aplus'
#BRAND_DESCRIPTION = 'Description of your service (default is Virtual Learning Environment)'
#BRAND_INSTITUTION_NAME = Your institution name, e.g., 'Aalto University', 'Tampere university'
#BRAND_INSTITUTION_NAME_FI = 'Aalto-yliopisto'
#WELCOME_TEXT = 'Welcome to A+ <small>modern learning environment</small>'
#SHIBBOLETH_TITLE_TEXT = 'Aalto University users'
#SHIBBOLETH_BODY_TEXT = 'Log in with your Aalto University user account by clicking on the button below. FiTech, Open University and programme students as well as staff members must log in here.'
#SHIBBOLETH_BUTTON_TEXT = 'Log in with Aalto account'
#HAKA_TITLE_TEXT = 'Haka Federation users'
#HAKA_BODY_TEXT = 'If your organization is a member of Haka federation, log in by clicking the button below.'
#HAKA_BUTTON_TEXT = 'Log in with Haka'
#MOOC_TITLE_TEXT = 'Users external to Aalto'
#MOOC_BODY_TEXT = 'Some of our courses are open for everyone. Log in with your user account from one of the following services.'
#INTERNAL_USER_LABEL = 'Aalto'
#EXTERNAL_USER_LABEL = 'MOOC'
#LOGIN_USER_DATA_INFO = 'Your personal data are stored in {brand_name}. For additional information, please see <a href="{privacy_url}">the privacy notice</a>.'
#WELCOME_TEXT_FI = 'A+ <small>verkkopohjainen oppimisympäristö</small>'
#SHIBBOLETH_TITLE_TEXT_FI = 'Aalto-yliopiston käyttäjät'
#SHIBBOLETH_BODY_TEXT_FI = 'Kirjaudu palveluun Aalto-yliopiston käyttäjätunnuksella alla olevasta painikkeesta. FiTechin, avoimen yliopiston ja koulutusohjelmien opiskelijoiden sekä henkilökunnan täytyy kirjautua tästä.'
#SHIBBOLETH_BUTTON_TEXT_FI = 'Kirjaudu Aalto-tunnuksella'
#HAKA_TITLE_TEXT_FI = 'Haka-käyttäjät'
#HAKA_BODY_TEXT_FI = 'Jos organisaatiosi on Haka-federaation jäsen, kirjaudu palveluun alla olevasta painikkeesta.'
#HAKA_BUTTON_TEXT_FI = 'Kirjaudu Haka-tunnuksella'
#MOOC_TITLE_TEXT_FI = 'Käyttäjät Aallon ulkopuolelta'
#MOOC_BODY_TEXT_FI = 'Osa kursseistamme on avoinna kaikille. Kirjaudu sisään jonkin seuraavan palvelun käyttäjätunnuksellasi.'
#LOGIN_USER_DATA_INFO_FI = 'Henkilötietosi säilytetään {brand_name}-järjestelmässä. Katso lisätietoja <a href="{privacy_url}">tietosuojailmoituksesta</a>.'
# Show red alert on top of all pages
#SITEWIDE_ALERT_TEXT = "Maintenance on Monday"
#SITEWIDE_ALERT_TEXT = {'en': "Maintenance on Monday", 'fi': "Maanantaina on palvelukatko"}
# Show blue info box on course index and course menu
#SITEWIDE_ADVERT = {
# 'not-before': '2020-01-01', # start showing on 1st
# 'not-after': '2020-01-04', # last visible date is 3rd
# 'title': {'en': "Advert", 'fi': "Mainos"},
# 'text': {'en': "We have open positions",
# 'fi': "Meillä on paikkoja"}
# 'href': "https://apluslms.github.io",
# 'image': "https://apluslms.github.io/logo.png",
#}
## Authentication backends
#INSTALLED_APPS += (
# 'shibboleth_login',
# 'social_django',
#)
## Shibboleth options
#SHIBBOLETH_ENVIRONMENT_VARS = {
# # required for the shibboleth system:
# 'PREFIX': 'SHIB_', # apache2: SHIB_, nginx: HTTP_SHIB_ (NOTE: client can inject HTTP_ vars!)
# 'STUDENT_DOMAIN': 'example.com', # domain where student numbers are selected
# # ..more options in aplus/settings.py
#}
## Haka
#HAKA_LOGIN = True
# Student Information System plugin settings
#SIS_PLUGIN_MODULE = 'course.sis_test'
#SIS_PLUGIN_CLASS = 'SisTest'
# Set up schedule for periodic student enrollment check for active
# courses with SIS linkage
# See https://docs.celeryproject.org/en/stable/userguide/periodic-tasks.html
# For example:
# from celery.schedules import crontab
# SIS_ENROLL_SCHEDULE = 10.0 -- every 10 seconds
# SIS_ENROLL_SCHEDULE = crontab(hour=1, minute=0) -- every night at 1:00
# Delay in seconds between outgoing SIS enrollment requests (None for no delay)
# SIS_ENROLL_DELAY = 15
## Database
#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'your_db_name',
# # use ident auth for local servers
# # and add passwd&hostname etc for remote
# }
#}
## Caches
#CACHES = {
# 'default': {
# # prefer memcached with unix socket
# 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
# 'LOCATION': 'unix:/tmp/memcached.sock',
#
# # Database cache, if memcached is not possible
# # remember to run `./manage.py createcachetable`
# 'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
# 'LOCATION': 'django_cache_default',
#
# # Local testing with max size
# 'BACKEND': 'lib.cache.backends.LocMemCache',
# 'LOCATION': 'unique-snowflake',
# 'OPTIONS': {'MAX_SIZE': 1000000}, # simulate memcached value limit
#
# # or dummy
# 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
# }
#}
## Sessions
#SESSION_COOKIE_SECURE = True
# Cache-based sessions require the Memcached cache backend.
#SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
# Use browser-length sessions in exam environments so that the A+ session
# cookie is always removed from the browser at the end of the exam.
#SESSION_EXPIRE_AT_BROWSER_CLOSE = True
## Logging
# For debugging purposes
#from .settings import LOGGING
#LOGGING['loggers'].update({
# '': {
# 'level': 'INFO',
# 'handlers': ['debug_console'],
# 'propagate': True,
# },
# 'django.db.backends': {
# 'level': 'DEBUG',
# },
#})
#