-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
118 lines (93 loc) · 3.96 KB
/
.env.example
File metadata and controls
118 lines (93 loc) · 3.96 KB
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
##
# This file contains the environment variables used by the Shrunk backend.
#
# To use this file, copy it to `development.env`.
##
# Allows logins for development purposes, disable when running in production.
# 0 = disabled, 1 = enabled
SHRUNK_DEV_LOGINS=1
# Admin on startup, value must be a valid NetID.
SHRUNK_SUPER_ADMIN="jcc"
# Used for signing session cookies.
# See: https://flask.palletsprojects.com/en/stable/config/#SECRET_KEY
SHRUNK_SECRET_KEY="something_secret"
# The MongoDB instance's IP address.
# "mongodb" = Docker Development, "mongodb-test" = Docker Testing, "localhost" = Production
# See: https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html
SHRUNK_DB_HOST="mongodb"
# Name used to connect to the MongoDB instance.
# See: https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html
SHRUNK_DB_NAME="shrunk"
# Port used to connect to the MongoDB instance.
# See: https://pymongo.readthedocs.io/en/stable/api/pymongo/mongo_client.html
SHRUNK_DB_PORT="27017"
# IP geolocation database path.
SHRUNK_GEOLITE_PATH="/usr/share/GeoIP/GeoLite2-City.mmdb"
# Shrunk's file name for backend activity.
# See: https://flask.palletsprojects.com/en/stable/logging/
SHRUNK_LOG_FILENAME="shrunk.log"
# Shrunk's logging format for backend activity.
# See: https://flask.palletsprojects.com/en/stable/logging/
SHRUNK_LOG_FORMAT="%(levelname)s %(asctime)s: %(message)s [in %(pathname)s:%(lineno)d]"
# Shrunk's message of the day (supports Markdown for links)
# Please use wisely to link feedback forms, new notable features, etc.
# Users can close the MOTD, but will be reprompted the same alert if the server restarts.
# See: https://kb.raramuridesign.com/customizing-your-linux-welcome-message-using-motd-message-of-the-day
# See: https://www.markdownguide.org/basic-syntax/
SHRUNK_MOTD="This is a test value for MOTD. [Click here for a random link](https://playvalorant.com/)"
# [FEATURE FLAG]
# Tracking pixels are served from the backend to track if a user has viewed an email or not.
# 0 = disabled, 1 = enabled
SHRUNK_TRACKING_PIXELS_ENABLED=1
# [FEATURE FLAG]
# Help desk feature to allow users to submit a ticket.
# 0 = disabled, 1 = enabled
SHRUNK_HELP_DESK_ENABLED=1
# [FEATURE FLAG]
# Custom subdomains for the URL shortener.
# TODO: Scheduled to be deleted, https://gitlab.rutgers.edu/MaCS/OSS/shrunk/-/issues/260
# 0 = disabled, 1 = enabled
SHRUNK_DOMAINS_ENABLED=0
# [FEATURE FLAG]
# See: https://safebrowsing.google.com/
# 0 = disabled, 1 = enabled
SHRUNK_GOOGLE_SAFEBROWSE_ENABLED=0
SHRUNK_GOOGLE_SAFEBROWSE_API_KEY=""
# [USED IN TESTING]
# TODO: Scheduled to be deleted, https://gitlab.rutgers.edu/MaCS/OSS/shrunk/-/issues/269
GITHUB_OUTLOOK_WEBHOOK_UPDATE_SECRET=""
# [USED IN TESTING]
# See: https://flask.palletsprojects.com/en/stable/config/#TESTING
SHRUNK_FLASK_TESTING=0
# [USED IN PRODUCTION]
# LDAP server URI.
# See: https://docs.ldap.com/ldap-sdk/docs/tool-usages/ldapsearch.html
SHRUNK_LDAP_URI="ldap://localhost:389"
# [USED IN PRODUCTION]
# bindDN value for LDAP.
# See: https://docs.ldap.com/ldap-sdk/docs/tool-usages/ldapsearch.html
SHRUNK_LDAP_BIND_DN="ou=users,dc=shrunk,dc=com"
# [USED IN PRODUCTION]
# Password to access LDAP
# See: https://docs.ldap.com/ldap-sdk/docs/tool-usages/ldapsearch.html
SHRUNK_LDAP_CRED="adminpassword"
# [USED IN PRODUCTION]
# LDAP query string.
# See: https://docs.ldap.com/ldap-sdk/docs/tool-usages/ldapsearch.html
SHRUNK_LDAP_QUERY_STR="uid={}"
# [USED IN PRODUCTION]
# baseDN value for LDAP.
# See: https://docs.ldap.com/ldap-sdk/docs/tool-usages/ldapsearch.html
SHRUNK_LDAP_BASE_DN="ou=People,dc=rutgers,dc=edu"
# [USED IN PRODUCTION]
SHRUNK_REQUIRE_2FA=0
# The name of the module to import at `flask run`.
FLASK_APP="shrunk"
# Shows an interactive debugger in the browser if an exception
# occurs. Although, this should never occur as HTTPD should show
# the frontend.
# See: https://flask.palletsprojects.com/en/stable/quickstart/#debug-mode
FLASK_DEBUG="true"
FLASK_ENV="development"
# [USED IN PRODUCTION]
SSO_LOGIN_URL="/login"