mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
fix linebreaks in secrets
This commit is contained in:
parent
ef3a073af5
commit
5abb9458c7
@ -1,4 +1,4 @@
|
|||||||
FROM jc21/alpine-nginx-full:node
|
FROM --platform=${TARGETPLATFORM:-linux/amd64} jc21/alpine-nginx-full:node
|
||||||
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
|
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
|
||||||
|
|
||||||
ENV SUPPRESS_NO_CONFIG_WARNING=1
|
ENV SUPPRESS_NO_CONFIG_WARNING=1
|
||||||
|
@ -19,7 +19,8 @@ for FILENAME in $(find /var/run/s6/container_environment/ | grep "__FILE$"); do
|
|||||||
|
|
||||||
# ... and set value to contents of secretfile
|
# ... and set value to contents of secretfile
|
||||||
# since s6 uses text files, this is effectively "export ..."
|
# since s6 uses text files, this is effectively "export ..."
|
||||||
cat $(${SECRETFILE} | xargs) > ${STRIPFILE}
|
# cat ${SECRETFILE} > ${STRIPFILE}
|
||||||
|
cat $(${SECRETFILE} | sed "s/[^\w.-]+//g") > ${STRIPFILE}
|
||||||
echo "[secret-init] Set ${STRIPFILE} to $(cat ${STRIPFILE})" # DEBUG - rm for prod!"
|
echo "[secret-init] Set ${STRIPFILE} to $(cat ${STRIPFILE})" # DEBUG - rm for prod!"
|
||||||
echo "[secret-init] Success! ${STRIPFILE} set from ${FILENAME}"
|
echo "[secret-init] Success! ${STRIPFILE} set from ${FILENAME}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user