Skip to content

Commit

Permalink
update azure settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Küng committed Sep 26, 2024
1 parent c584638 commit 2d1fc2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions entrypoint.azure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

# migrate database
python manage.py makemigrations catalogs, process, pkgsinfo, reports, manifests, inventory, icons, santa
python manage.py migrate

gunicorn --bind=0.0.0.0 --timeout 600 --workers=4 munkiwebadmin.wsgi
5 changes: 3 additions & 2 deletions munkiwebadmin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@
'USERNAME_CLAIM': 'upn',
'TENANT_ID': TENANT_ID,
'RELYING_PARTY_ID': CLIENT_ID,
"GROUP_TO_FLAG_MAPPING": {"is_staff": ["ikuengUsers"],
"is_superuser": "ikuengAdmins"},
'GROUPS_CLAIM': 'groups',
"GROUP_TO_FLAG_MAPPING": {"is_staff": os.environ.get("STAFF_USERS", "localhost 127.0.0.1 [::1]").split(" "),
"is_superuser": os.environ.get("SUPER_USERS", "localhost 127.0.0.1 [::1]").split(" ")},
'LOGIN_EXEMPT_URLS': [
'^api',
],
Expand Down

0 comments on commit 2d1fc2f

Please sign in to comment.