Skip to content

Commit

Permalink
Adding health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy-sandhu committed Oct 21, 2024
1 parent f9a6e5a commit 576d627
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/openlxp_xss_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'rest_framework.authtoken',
'core.apps.CoreConfig',
'api',
'health_check',
'users',
'social_django',
'openlxp_authentication',
Expand Down Expand Up @@ -190,6 +191,8 @@
CSRF_COOKIE_DOMAIN = '.deloitteopenlxp.com'
CSRF_TRUSTED_ORIGINS = ['https://dev-ldss.deloitteopenlxp.com', ]

SECURE_SSL_REDIRECT = False

AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'openlxp_authentication.models.SAMLDBAuth',
Expand Down
2 changes: 2 additions & 0 deletions app/openlxp_xss_project/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@
re_path('admin/', admin.site.urls),
re_path('api/', include('api.urls')),
re_path('api/auth/', include('users.urls')),
re_path('health/', include('health_check.urls'),
name='health_check')
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ django-colorfield>=0.11.0

django-cors-headers>=3.7.0,<3.8.0

django-health-check>3.18.0, <3.19.0

django-model-utils>=4.1.1,<4.2.0

django-mysql>=4.4.0,<5.0.0
Expand Down

0 comments on commit 576d627

Please sign in to comment.