-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd.sh-template
More file actions
43 lines (33 loc) · 1.59 KB
/
cmd.sh-template
File metadata and controls
43 lines (33 loc) · 1.59 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
#!/bin/bash
# This script runs the manage.py Django management commands with the environment variables set below.
# This script is intended to be run inside a virtualenv.
#
# For a full overview of environment variables, see the section "Site-specific settings" of the
# Argus documentation.
# cf. https://argus-server.readthedocs.io/en/latest/reference/site-specific-settings.html
#
# Run the script without arguments to get a list of all available commands.
export DEBUG=1
export EMAIL_HOST=localhost
export EMAIL_PORT=25
# Run `python manage.py gen_secret_key` to create a SECRET_KEY
export SECRET_KEY=super-secret
# Use argus.site.settings.dev for defaults, or a local settings.py file (see docs)
export DJANGO_SETTINGS_MODULE='geant_argus.settings.dev'
# Syntax: postgresql://argus:<LOCAL DB PASSWORD>@localhost:5432/argus
export DATABASE_URL=postgresql://argus:argus@localhost:5433/argus
export ARGUS_DISABLE_REDIS=1
export ARGUS_AUTH_TOKEN_EXPIRES_AFTER_DAYS=365
# If connected to a local database, you should disable back-synchronization. Unset this variable
# or set to 0 to enable back-synchronization to the noc-alarms database
export DASHBOARD_ALARMS_DISABLE_SYNCHRONIZATION=1
export ARGUS_DASHBOARD_ALARMS_API_URL='http://test-noc-alarms-ui01.geant.org:8080'
# Get the OIDC/SSO values from Lastpass
export ARGUS_OIDC_DISABLE=1
export ARGUS_OIDC_URL=
export ARGUS_OIDC_CLIENT_ID=
export ARGUS_OIDC_SECRET=
export ARGUS_OIDC_ENTITLEMENTS_PATTERN=
export ARGUS_TICKET_URL_BASE='https://tts.geant.net/otrs/index.pl?Action=AgentTicketZoom;TicketNumber='
export CONFIG_FILENAME="config.json"
python manage.py "$@"