diff --git a/Dockerfile b/Dockerfile index e56abd1..231f498 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine RUN apk --no-cache add python3 inkscape bash imagemagick ttf-opensans -RUN apk --no-cache add py3-pip && pip3 install django tzdata gunicorn +RUN apk --no-cache add py3-pip && pip3 install --break-system-packages django tzdata gunicorn ADD backend /root/zetikettes @@ -12,4 +12,4 @@ RUN mkdir -p /usr/share/fonts/TTF \ # the script will look for templates in /data WORKDIR /root/zetikettes/zetikettes -CMD /usr/bin/gunicorn zetikettes.wsgi -b 0.0.0.0:8000 --timeout 600 +CMD /usr/bin/gunicorn zetikettes.wsgi -b 0.0.0.0:8000 --timeout 600 --forwarded-allow-ips="*" diff --git a/backend/zetikettes/zetikettes/settings.py b/backend/zetikettes/zetikettes/settings.py index 56935d3..59f63fd 100644 --- a/backend/zetikettes/zetikettes/settings.py +++ b/backend/zetikettes/zetikettes/settings.py @@ -121,7 +121,7 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/4.2/howto/static-files/ -STATIC_URL = 'static/' +STATIC_URL = '/zetikettes/srv/static/' STATIC_ROOT = 'www_static'