aboutsummaryrefslogtreecommitdiff
path: root/bws.cfg.example
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-01-27 09:51:44 -0500
committerB. Stack <bgstack15@gmail.com>2022-01-27 09:51:44 -0500
commitadfc6caaedefaeea913a7f5c4ad7781bb629ecba (patch)
tree4255fe3d57adaa4a0af8f9a93c0347afa70ea01f /bws.cfg.example
downloadbws-master.tar.gz
bws-master.tar.bz2
bws-master.zip
initial commitHEADmaster
Diffstat (limited to 'bws.cfg.example')
-rw-r--r--bws.cfg.example22
1 files changed, 22 insertions, 0 deletions
diff --git a/bws.cfg.example b/bws.cfg.example
new file mode 100644
index 0000000..4c29617
--- /dev/null
+++ b/bws.cfg.example
@@ -0,0 +1,22 @@
+# SESSION_CONFIG file
+# Run with:
+# SESSION_CONFIG=example.cfg FLASK_APP=session_app.py FLASK_DEBUG=1 flask run --host 0.0.0.0 --port 5000
+HOSTNAME = "d2-03a.ipa.internal.com"
+# These don't seem to work when running "flask run", so they might only be used by uwsgi.
+LISTEN_HOST = "0.0.0.0"
+LISTEN_PORT = "5000"
+
+DEBUG=True
+
+LDAP_URI = "ldaps://ipa.internal.com:636"
+LDAP_USER_BASE = "cn=users,cn=accounts,dc=ipa,dc=internal,dc=com"
+LDAP_GROUP_BASE = "cn=groups,cn=accounts,dc=ipa,dc=internal,dc=com"
+LDAP_USER_MATCH_ATTRIB = "uid"
+LDAP_USER_DISPLAY_ATTRIB = "uid"
+LDAP_USER_ATTRIB_MEMBEROF = "memberof"
+LDAP_GROUP_DISPLAY_ATTRIB = "cn"
+LDAP_BIND_DN = "uid=domainjoin,cn=users,cn=accounts,dc=ipa,dc=internal,dc=com"
+LDAP_BIND_PASSWORD = "examplepassword"
+# Default timeout for session, which is ignored if the user checks "Remember until logout" at login screen.
+SESSION_DURATION_MINUTES = 60*24*365*10
+ADMIN_GROUP = 'admins'
bgstack15