Skip to content

Commit 7663b22

Browse files
committed
separate default config and dev config
1 parent e62e286 commit 7663b22

File tree

2 files changed

+75
-28
lines changed

2 files changed

+75
-28
lines changed

defaults/config.ini.default

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repo = "https://github.com/UnityHPC/unity-web-portal" ; Upstream URL for the we
88
[site]
99
prefix = "" ; prefix of website, no ending / should be included
1010
name = "Unity HPC Account Portal" ; Name of the website
11-
url = "http://127.0.0.1:8000/" ; URL of the website
11+
url = "https://account.acme.edu" ; URL of the website
1212
description = "The Unity HPC Account Portal is an identity management GUI for research computing" ; Description of the website
1313
logo = "logo.png" ; path to logo file, in the webroot/assets/branding folder
1414
terms_of_service_url = "https://github.com" ;
@@ -23,39 +23,39 @@ enable_error_handler = true ; internal use only
2323
session_cleanup_idle_seconds = 1800 ; how long a session must be idle before messages and CSRF tokens are cleared
2424

2525
[ldap]
26-
uri = "ldap://identity" ; URI of remote LDAP server
27-
user = "cn=admin,dc=unityhpc,dc=test" ; Admin bind DN LDAP user
28-
pass = "password" ; Admin bind password
26+
uri = "ldap://identity.acme.edu" ; URI of remote LDAP server
27+
user = "cn=admin,dc=acme,dc=edu" ; Admin bind DN LDAP user
28+
pass = "CHANGE_THIS_PASSWORD_OR_ELSE" ; Admin bind password
2929
custom_user_mappings_dir = "deployment/custom_user_mappings" ; for internal use only
30-
basedn = "dc=unityhpc,dc=test" ; Base search DN
31-
user_ou = "ou=users,dc=unityhpc,dc=test" ; User organizational unit (may contain more than user group)
32-
usergroup_ou = "ou=user_groups,dc=unityhpc,dc=test" ; Group organizational unit
33-
pigroup_ou = "ou=pi_groups,dc=unityhpc,dc=test" ; PI Group organizational unit
34-
orggroup_ou = "ou=org_groups,dc=unityhpc,dc=test" ; ORG group organizational unit
30+
basedn = "dc=acme,dc=edu" ; Base search DN
31+
user_ou = "ou=users,ou=account_portal,dc=acme,dc=edu" ; User organizational unit (may contain more than user group)
32+
usergroup_ou = "ou=user_groups,ou=account_portal,dc=acme,dc=edu" ; Group organizational unit
33+
pigroup_ou = "ou=pi_groups,ou=account_portal,dc=acme,dc=edu" ; PI Group organizational unit
34+
orggroup_ou = "ou=org_groups,ou=account_portal,dc=acme,dc=edu" ; ORG group organizational unit
3535
def_user_shell = "/bin/bash" ; Default shell for new users
3636
offset_UIDGID = 1000000 ; start point when allocating new UID/GID pairs for a new user
3737
offset_PIGID = 2000000 ; start point when allocating new GID for a new PI group
3838
offset_ORGGID = 3000000 ; start point when allocating new GID for a new org group
39-
user_flag_groups[admin] = "cn=web_admins,dc=unityhpc,dc=test" ; admin user group dn
40-
user_flag_groups[disabled] = "cn=disabled,dc=unityhpc,dc=test" ; disabled user group dn
41-
user_flag_groups[idlelocked] = "cn=idlelocked,dc=unityhpc,dc=test" ; idlelocked user group dn
42-
user_flag_groups[immortal] = "cn=immortal,dc=unityhpc,dc=test" ; immortal user group dn
43-
user_flag_groups[locked] = "cn=locked,dc=unityhpc,dc=test" ; locked user group dn
44-
user_flag_groups[qualified] = "cn=unityusers,dc=unityhpc,dc=test" ; qualified user group (in at least one PI group)
39+
user_flag_groups[admin] = "cn=admin,dc=acme,dc=edu" ; admin user group dn
40+
user_flag_groups[disabled] = "cn=disabled,dc=acme,dc=edu" ; disabled user group dn
41+
user_flag_groups[idlelocked] = "cn=idlelocked,dc=acme,dc=edu" ; idlelocked user group dn
42+
user_flag_groups[immortal] = "cn=immortal,dc=acme,dc=edu" ; immortal user group dn
43+
user_flag_groups[locked] = "cn=locked,dc=acme,dc=edu" ; locked user group dn
44+
user_flag_groups[qualified] = "cn=qualified,dc=acme,dc=edu" ; qualified user group (in at least one PI group)
4545
allowed_ssh_key_types[] = ssh-rsa
4646
allowed_ssh_key_types[] = ecdsa-sha2-nistp256
4747
allowed_ssh_key_types[] = ecdsa-sha2-nistp384
4848
allowed_ssh_key_types[] = ecdsa-sha2-nistp521
4949
allowed_ssh_key_types[] = ssh-ed25519
5050

5151
[sql]
52-
host = "sql" ; mariadb hostname
53-
user = "unity" ; mariadb username
54-
pass = "password" ; mariadb password
55-
dbname = "unity" ; mariadb database name
52+
host = "localhost" ; mariadb hostname
53+
user = "account_portal" ; mariadb username
54+
pass = "CHANGE_THIS_PASSWORD_OR_ELSE" ; mariadb password
55+
dbname = "account_portal" ; mariadb database name
5656

5757
[smtp]
58-
host = "smtp" ; hostname of remote smtp server
58+
host = "smtp.acme.edu" ; hostname of remote smtp server
5959
port = "1025" ; port of remote smtp server
6060
security = "" ; leave blank for no encryption, "ssl", or "tls"
6161
user = "" ; smtp username, if exists
@@ -107,14 +107,14 @@ labels[] = "Secure Menuitem 1"
107107
links[] = "https://github.com/"
108108

109109
[mail] ; mail addresses
110-
support = "support-email@unitywebportal.test" ; Email for user support
111-
support_name = "Unity Support"
112-
admin = "admin-email@unitywebportal.test" ; Email that goes to admins about site messages
113-
admin_name = "Unity Admins"
114-
sender = "sender-email@unitywebportal.test" ; The "from" email for all messages sent from the portal
115-
sender_name = "Unity Sender"
116-
pi_approve = "piapproval@unitywebportal.test" ; Only PI approval messages will go to this email
117-
pi_approve_name = "Unity PI Approval"
110+
support = "support-email@acme.edu" ; Email for user support
111+
support_name = "acme.edu Support"
112+
admin = "admin-email@acme.edu" ; Email that goes to admins about site messages
113+
admin_name = "acme.edu Admins"
114+
sender = "sender-email@acme.edu" ; The "from" email for all messages sent from the portal
115+
sender_name = "acme.edu account portal"
116+
pi_approve = "piapproval@acme.edu" ; Only PI approval messages will go to this email
117+
pi_approve_name = "acme.edu PI Approval"
118118
send_pimesg_to_admins = false
119119

120120
[webhook] ; webhook to send messages to admins
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,49 @@
1+
[site]
2+
url = "http://127.0.0.1:8000/"
3+
4+
[ldap]
5+
uri = "ldap://identity"
6+
user = "cn=admin,dc=unityhpc,dc=test"
7+
pass = "password"
8+
basedn = "dc=unityhpc,dc=test"
9+
user_ou = "ou=users,dc=unityhpc,dc=test"
10+
usergroup_ou = "ou=user_groups,dc=unityhpc,dc=test"
11+
pigroup_ou = "ou=pi_groups,dc=unityhpc,dc=test"
12+
orggroup_ou = "ou=org_groups,dc=unityhpc,dc=test"
13+
offset_UIDGID = 1000000 ; start point when allocating new UID/GID pairs for a new user
14+
offset_PIGID = 2000000 ; start point when allocating new GID for a new PI group
15+
offset_ORGGID = 3000000 ; start point when allocating new GID for a new org group
16+
user_flag_groups[admin] = "cn=web_admins,dc=unityhpc,dc=test" ; admin user group dn
17+
user_flag_groups[disabled] = "cn=disabled,dc=unityhpc,dc=test"
18+
user_flag_groups[idlelocked] = "cn=idlelocked,dc=unityhpc,dc=test" ; idlelocked user group dn
19+
user_flag_groups[immortal] = "cn=immortal,dc=unityhpc,dc=test"
20+
user_flag_groups[locked] = "cn=locked,dc=unityhpc,dc=test"
21+
user_flag_groups[qualified] = "cn=unityusers,dc=unityhpc,dc=test" ; qualified user group (in at least one PI group)
22+
23+
[sql]
24+
host = "sql"
25+
user = "unity"
26+
pass = "password"
27+
dbname = "unity"
28+
29+
[smtp]
30+
host = "smtp"
31+
port = "1025"
32+
security = ""
33+
user = ""
34+
pass = ""
35+
ssl_verify = "false"
36+
37+
[mail]
38+
support = "support-email@unitywebportal.test"
39+
support_name = "Unity Support"
40+
admin = "admin-email@unitywebportal.test"
41+
admin_name = "Unity Admins"
42+
sender = "sender-email@unitywebportal.test"
43+
sender_name = "Unity Sender"
44+
pi_approve = "piapproval@unitywebportal.test"
45+
pi_approve_name = "Unity PI Approval"
46+
send_pimesg_to_admins = false
47+
148
[api]
249
keys[] = "dev_environment_api_key"

0 commit comments

Comments
 (0)