forked from ubccr/coldfront
-
Notifications
You must be signed in to change notification settings - Fork 0
/
envexample
272 lines (201 loc) · 9.51 KB
/
envexample
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
#------------------------------------------------------------------------------
# Base settings
#------------------------------------------------------------------------------
# If setting up a production instance, DELETE THE LINE BELOW.
DEBUG=True
# SECRET_KEY is used to provide cryptographic signing, and should be set to a unique,
# unpredictable value. If a value isn't provided here, one will be generated each time
# ColdFront starts. See https://docs.djangoproject.com/en/3.1/ref/settings/#secret-key.
# SECRET_KEY=CRYPTOGRAPHIC_SECRET_KEY
# Set to True in production when using HTTPS
SESSION_COOKIE_SECURE=True
# LANGUAGE_CODE='en-us'
# TIME_ZONE='America/New_York'
# To override ColdFront stock templates, create a directory and add your
# custom templates. By default, ColdFront looks in /usr/share/coldfront/site/templates
# and /usr/share/coldfront/site/static. If you'd like to use a different directory
# then be sure to set the following environment variable:
# SITE_TEMPLATES=/path/to/your/templates
# override any static files such as CSS or images by creating a directory and
# adding your custom static assets, then setting the following variable:
# SITE_STATIC=/path/to/static/files
#------------------------------------------------------------------------------
# Core settings
#------------------------------------------------------------------------------
# Paths to store static assets. These are currently set to the defaults used in
# the FASRC Coldfront Docker containers.
STATIC_ROOT=/static/
LOCALDATA_ROOT=/usr/src/app
COLDFRONT_DATA_LOAD=/n/coldfront
# Enable administrators to login as other users, default True
# ENABLE_SU=True
# Enable or disable project reviews, default True. FASRC sets to False. For more
# on project reviews see https://coldfront.readthedocs.io/en/latest/manual/projects/project_review/
PROJECT_ENABLE_PROJECT_REVIEW=False
# Enable or disable allocation renewals, default True. We set to False, as our
# allocations are meant to continue indefinitely.
ALLOCATION_ENABLE_ALLOCATION_RENEWAL=False
# Default number of days an allocation is active for, default 365
# ALLOCATION_DEFAULT_ALLOCATION_LENGTH=365
# Enable or disable allocation change requests, default True
# ALLOCATION_ENABLE_CHANGE_REQUESTS_BY_DEFAULT=True
# List of days users can request extensions in an allocation change request, default 30,60,90
# ALLOCATION_CHANGE_REQUEST_EXTENSION_DAYS=30,60,90
# Allow user to select account name for allocation, default False
# ALLOCATION_ACCOUNT_ENABLED=False
# Controls the ordering of parent resources for an allocation (if allocation has
# multiple resources). Should be a list of field names suitable for Django QuerySet
# order_by method, default is ['-is_allocatable', 'name']; i.e. prefer Resources
# with is_allocatable field set, ordered by name of the Resource.
# ALLOCATION_RESOURCE_ORDERING=['-is_allocatable', 'name']
# Enable or disable invoices, default True
# INVOICE_ENABLED=True
# The URL to your Open OnDemand installation
# ONDEMAND_URL=ONDEMAND_URL
# Custom message when user fails to login. You can paint a custom link to your user account portal.
# LOGIN_FAIL_MESSAGE="Login Failed"
#------------------------------------------------------------------------------
# General Center Information
#------------------------------------------------------------------------------
# The display name of your center. Used in emails, among other places.
CENTER_NAME='Harvard FASRC'
# The URL of your help ticketing system. This is the url to which the "Help" link
# in the nav bar will redirect.
CENTER_HELP_URL='https://portal.rc.fas.harvard.edu/rcrt/submit_ticket'
# The URL of the article describing project renewals
#CENTER_PROJECT_RENEWAL_HELP_URL='https://portal.rc.fas.harvard.edu/rcrt/submit_ticket'
# The base URL of your center.
# CENTER_BASE_URL='https://www.rc.fas.harvard.edu/'
#------------------------------------------------------------------------------
# Custom Database settings
#------------------------------------------------------------------------------
# None of the below settings are needed if using a sqlite database for testing.
# username for database login
DB_USER=coldfront
# Database connection. If not set, sqlite:///coldfront.db will be used.
# DB_URL=mysql://user:[email protected]:3306/database
# password for database login
DB_PASS=$DB_PASS
# host container for database
DB_HOST=coldfront-db
#------------------------------------------------------------------------------
# Email settings
#------------------------------------------------------------------------------
# Set all of the following variables and set EMAIL_ENABLED to True to autosend email
# Enable/disable email. Default False
# EMAIL_ENABLED=True
# Hostname of smtp server
# EMAIL_HOST='hostaddress.domain.university.edu'
# Default sender email address
# EMAIL_SENDER='[email protected]'
# Recipient email addresses for ticketing system, director, project review contact
# EMAIL_PROJECT_REVIEW_CONTACT='[email protected]'
### LIST variables can be multiple comma-separated values.
# List of admin email addresses.
# List of emails to send when in debug mode
### The following items are part of the standard email templates.
# URL of article regarding opt out
EMAIL_OPT_OUT_INSTRUCTION_URL='https://coldfront.rc.fas.harvard.edu/opt_out/'
# Prefix to add to subject line
# EMAIL_SUBJECT_PREFIX="[coldfront]"
# Email signature to add to outgoing emails
EMAIL_SIGNATURE='FAS Research Computing'
# smtp port
# EMAIL_PORT
# Username for smtp
# EMAIL_HOST_USER
# password for smtp
# EMAIL_HOST_PASSWORD
# Enable/disable tls. Default False
# EMAIL_USE_TLS
#------------------------------------------------------------------------------
# Slurm Plugin Settings
#------------------------------------------------------------------------------
# Enable Slurm integration. Default False
# PLUGIN_SLURM=False
# Path to sacctmgr command. Default /usr/bin/sacctmgr
# SLURM_SACCTMGR_PATH
# Enable/disable noop. Default False
# SLURM_NOOP=False
# List of user accounts to ignore when generating Slurm associations
# SLURM_IGNORE_USERS
# List of Slurm accounts to ignore when generating Slurm associations
# SLURM_IGNORE_ACCOUNTS
#------------------------------------------------------------------------------
# XDMoD Plugin Settings
#------------------------------------------------------------------------------
# Enable XDMoD integration. Default False
# PLUGIN_XDMOD=False
# URL to XDMoD API
# XDMOD_API_URL=
#------------------------------------------------------------------------------
# FreeIPA Plugin Settings
#------------------------------------------------------------------------------
# Enable FreeIPA integration. Default False
# PLUGIN_FREEIPA=False
# Path to keytab file
# FREEIPA_KTNAME
# Hostname of FreeIPA server
# FREEIPA_SERVER
# User search base dn
# FREEIPA_USER_SEARCH_BASE
# Enable/Disable signals. Default False
# FREEIPA_ENABLE_SIGNALS=False
#------------------------------------------------------------------------------
# iquota Plugin Settings
#------------------------------------------------------------------------------
# Enable iquota integration. Default False
# PLUGIN_IQUOTA=False
# Path to keytab file
# IQUOTA_KEYTAB=
# Path to ca cert
# IQUOTA_CA_CERT=
# Hostname of iquota server
# IQUOTA_API_HOST=
# Port of iquota server
# IQUOTA_API_PORT=
#------------------------------------------------------------------------------
# LDAP Auth Plugin
#------------------------------------------------------------------------------
# set the following if you are using LDAP integration
# Enable LDAP Authentication Backend, default False
# PLUGIN_AUTH_LDAP=False
# URI of LDAP server
# AUTH_LDAP_SERVER_URI=ldaps://my.ldap:636
# User search base dn
# AUTH_LDAP_USER_SEARCH_BASE='OU=Domain Users,dc=rc,dc=domain'
# Enable/disable start tls, default True
# AUTH_LDAP_START_TLS=False
# Authentication will leave the LDAP connection bound as the authenticating user,
# rather than forcing it to re-bind, default False
# AUTH_LDAP_BIND_AS_AUTHENTICATING_USER=False
# The distinguished name to use when binding to the LDAP server
# AUTH_LDAP_BIND_DN='CN=xdmodldap,OU=Service Accounts,OU=Domain Users,DC=rc,DC=domain'
# The password to use AUTH_LDAP_BIND_DN
# AUTH_LDAP_BIND_PASSWORD='password_in_singlequotes'
# Enable/disable mirroring of groups, default True
# AUTH_LDAP_MIRROR_GROUPS=True
# Group search base dn
# AUTH_LDAP_GROUP_SEARCH_BASE='OU=Domain Groups,dc=rc,dc=domain'
#------------------------------------------------------------------------------
# FASRC-specific Plugins
#------------------------------------------------------------------------------
# If using the IFX plugin, set PLUGIN_IFX to True. This is not commented out here because
# IFX is critical enough to FASRC Coldfront that it should be the assumed default.
PLUGIN_IFX=True
# If using the FASRC plugin, uncomment the lines below and add the neo4j password.
# PLUGIN_FASRC=True
# NEO4JP=$NEO4JP
# If using the FASRC LDAP plugin, uncomment the line below
# PLUGIN_LDAP=True
#------------------------------------------------------------------------------
# Starfish Plugin
#------------------------------------------------------------------------------
# If using SFtoCF, uncomment the lines below and add starfish account details.
# PLUGIN_SFTOCF=True
# SFUSER=$SFUSER
# SFPASS=$SFPASS