small compress fixes to help serve scss on staging server and avoid persistent 500 errors
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Disco DeDisco
2026-03-02 16:02:47 -05:00
parent eebc355f95
commit b53c0b9849
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,8 @@ RUN python manage.py collectstatic --noinput
ENV DJANGO_DEBUG_FALSE=1
RUN python manage.py compress
RUN adduser --uid 1234 nonroot
USER nonroot

View File

@@ -37,6 +37,7 @@ if 'DJANGO_DEBUG_FALSE' in os.environ:
SECURE_HSTS_SECONDS = 60
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True
COMPRESS_OFFLINE = True
else:
DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret!