initial docker deployment implementation

This commit is contained in:
Munaawa Philip
2021-01-12 18:21:53 +00:00
committed by Swift Ugandan
parent 087206346a
commit a15ed70d44
41 changed files with 832 additions and 38 deletions

View File

@@ -5,7 +5,7 @@ from .methods import is_mediacms_editor, is_mediacms_manager
def stuff(request):
"""Pass settings to the frontend"""
ret = {}
if request.is_secure():
if request.is_secure() and settings.LOCAL_INSTALL:
# in case session is https, pass this setting so
# that the frontend uses https too
ret["FRONTEND_HOST"] = settings.SSL_FRONTEND_HOST