parent
06375f9b00
commit
0e1c6f987b
@ -0,0 +1,10 @@ |
|||||||
|
ARG IMAGE |
||||||
|
ARG TAG |
||||||
|
|
||||||
|
FROM ${IMAGE}:${TAG} |
||||||
|
|
||||||
|
LABEL maintainer="Meliurwen <meliruwen@gmail.com>" |
||||||
|
|
||||||
|
COPY enable_pjpeg.patch enable_pjpeg.patch |
||||||
|
|
||||||
|
RUN patch -p1 < enable_pjpeg.patch |
@ -0,0 +1,10 @@ |
|||||||
|
--- api/config/settings/common.py.original 2020-08-29 12:29:47.397299670 +0200
|
||||||
|
+++ api/config/settings/common.py 2020-08-29 12:38:28.702664515 +0200
|
||||||
|
@@ -1228,6 +1228,7 @@
|
||||||
|
VERSATILEIMAGEFIELD_SETTINGS = {
|
||||||
|
"create_images_on_demand": False,
|
||||||
|
"jpeg_resize_quality": env.int("THUMBNAIL_JPEG_RESIZE_QUALITY", default=95),
|
||||||
|
+ "progressive_jpeg": True,
|
||||||
|
}
|
||||||
|
RSA_KEY_SIZE = 2048
|
||||||
|
# for performance gain in tests, since we don't need to actually create the
|
@ -0,0 +1,15 @@ |
|||||||
|
ARG IMAGE |
||||||
|
ARG TAG |
||||||
|
|
||||||
|
FROM ${IMAGE}:${TAG} |
||||||
|
|
||||||
|
LABEL maintainer="Meliurwen <meliruwen@gmail.com>" |
||||||
|
|
||||||
|
COPY root/ / |
||||||
|
|
||||||
|
ENV MEDIA_ROOT=/srv/wwww/media |
||||||
|
ENV MUSIC_DIRECTORY_PATH=/srv/wwww/music |
||||||
|
ENV STATIC_ROOT=/srv/wwww/static |
||||||
|
ENV FUNKWHALE_FRONTEND_PATH=/srv/wwww/frontend |
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"] |
@ -0,0 +1,13 @@ |
|||||||
|
#!/bin/sh |
||||||
|
|
||||||
|
# Exit at first error |
||||||
|
set -e |
||||||
|
|
||||||
|
# Fill the varibles in funkwhale.template and put the result in default.conf |
||||||
|
envsubst "`env | awk -F = '{printf \" $$%s\", $$1}'`" < \ |
||||||
|
/etc/nginx/conf.d/funkwhale.template > \ |
||||||
|
/etc/nginx/conf.d/default.conf |
||||||
|
|
||||||
|
cat /etc/nginx/conf.d/default.conf |
||||||
|
|
||||||
|
nginx -g 'daemon off;' |
Loading…
Reference in new issue