Fix borken thangs

This commit is contained in:
Paul Mathieu 2024-09-03 19:26:28 +00:00
parent 092c0d17ae
commit bbc59931e1
2 changed files with 3 additions and 3 deletions

View File

@ -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="*"

View File

@ -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'