Merge branch '29-napraviti-produkcioni-server' into 'master'

Resolve "Napraviti produkcioni server"

Closes #29

See merge request kbr4/riskletpy!35
This commit was merged in pull request #84.
This commit is contained in:
2025-06-30 10:44:09 +00:00

View File

@@ -37,7 +37,8 @@ DEBUG = config('DEBUG', default=False, cast=bool)
ALLOWED_HOSTS = config('ALLOWED_HOSTS', default=[], cast=Csv())
SITE_DOMAIN = "http://risklet.kompanijabroj4.com"
SITE_DOMAIN = "https://risklet.com"
#SITE_DOMAIN = "http://risklet.kompanijabroj4.com"
#SITE_DOMAIN = "http://127.0.0.1:8000"
# Application definition
@@ -168,3 +169,9 @@ CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_TIMEZONE = 'UTC'
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
SECURE_HSTS_SECONDS = 31536000
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True