mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	fix linebreaks in secrets
This commit is contained in:
		| @@ -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>" | ||||
|  | ||||
| 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 | ||||
|         # 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] Success! ${STRIPFILE} set from ${FILENAME}" | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user