mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	| @@ -1,7 +1,7 @@ | |||||||
| <p align="center"> | <p align="center"> | ||||||
| 	<img src="https://nginxproxymanager.com/github.png"> | 	<img src="https://nginxproxymanager.com/github.png"> | ||||||
| 	<br><br> | 	<br><br> | ||||||
| 	<img src="https://img.shields.io/badge/version-2.9.19-green.svg?style=for-the-badge"> | 	<img src="https://img.shields.io/badge/version-2.9.22-green.svg?style=for-the-badge"> | ||||||
| 	<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager"> | 	<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager"> | ||||||
| 		<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge"> | 		<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge"> | ||||||
| 	</a> | 	</a> | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								docker/rootfs/etc/cont-finish.d/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								docker/rootfs/etc/cont-finish.d/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,2 +0,0 @@ | |||||||
| * |  | ||||||
| !.gitignore |  | ||||||
							
								
								
									
										3
									
								
								docker/rootfs/etc/cont-init.d/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								docker/rootfs/etc/cont-init.d/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +0,0 @@ | |||||||
| * |  | ||||||
| !.gitignore |  | ||||||
| !*.sh |  | ||||||
| @@ -1,7 +0,0 @@ | |||||||
| #!/usr/bin/with-contenv bash |  | ||||||
| set -e |  | ||||||
|  |  | ||||||
| mkdir -p /data/logs |  | ||||||
| echo "Changing ownership of /data/logs to $(id -u):$(id -g)" |  | ||||||
| chown -R "$(id -u):$(id -g)" /data/logs |  | ||||||
|  |  | ||||||
| @@ -1,29 +0,0 @@ | |||||||
| #!/usr/bin/with-contenv bash |  | ||||||
| # ref: https://github.com/linuxserver/docker-baseimage-alpine/blob/master/root/etc/cont-init.d/01-envfile |  | ||||||
|  |  | ||||||
| # in s6, environmental variables are written as text files for s6 to monitor |  | ||||||
| # search through full-path filenames for files ending in "__FILE" |  | ||||||
| for FILENAME in $(find /var/run/s6/container_environment/ | grep "__FILE$"); do |  | ||||||
|     echo "[secret-init] Evaluating ${FILENAME##*/} ..." |  | ||||||
|  |  | ||||||
|     # set SECRETFILE to the contents of the full-path textfile |  | ||||||
|     SECRETFILE=$(cat ${FILENAME}) |  | ||||||
|     # SECRETFILE=${FILENAME} |  | ||||||
|     # echo "[secret-init] Set SECRETFILE to ${SECRETFILE}"  # DEBUG - rm for prod! |  | ||||||
|  |  | ||||||
|     # if SECRETFILE exists / is not null |  | ||||||
|     if [[ -f ${SECRETFILE} ]]; then |  | ||||||
|         # strip the appended "__FILE" from environmental variable name ... |  | ||||||
|         STRIPFILE=$(echo ${FILENAME} | sed "s/__FILE//g")  |  | ||||||
|         # echo "[secret-init] Set STRIPFILE to ${STRIPFILE}"  # DEBUG - rm for prod! |  | ||||||
|          |  | ||||||
|         # ... and set value to contents of secretfile |  | ||||||
|         # since s6 uses text files, this is effectively "export ..." |  | ||||||
|         printf $(cat ${SECRETFILE}) > ${STRIPFILE} |  | ||||||
|         # echo "[secret-init] Set ${STRIPFILE##*/} to $(cat ${STRIPFILE})"  # DEBUG - rm for prod!" |  | ||||||
|         echo "[secret-init] Success! ${STRIPFILE##*/} set from ${FILENAME##*/}" |  | ||||||
|  |  | ||||||
|     else |  | ||||||
|         echo "[secret-init] cannot find secret in ${FILENAME}" |  | ||||||
|     fi |  | ||||||
| done |  | ||||||
							
								
								
									
										2
									
								
								docker/rootfs/etc/fix-attrs.d/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								docker/rootfs/etc/fix-attrs.d/.gitignore
									
									
									
									
										vendored
									
									
								
							| @@ -1,2 +0,0 @@ | |||||||
| * |  | ||||||
| !.gitignore |  | ||||||
| @@ -48,10 +48,40 @@ else | |||||||
| 	echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" { sub(/%.*$/,"",$2); print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf) valid=10s;" > /etc/nginx/conf.d/include/resolvers.conf | 	echo resolver "$(awk 'BEGIN{ORS=" "} $1=="nameserver" { sub(/%.*$/,"",$2); print ($2 ~ ":")? "["$2"]": $2}' /etc/resolv.conf) valid=10s;" > /etc/nginx/conf.d/include/resolvers.conf | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | echo "Changing ownership of /data/logs to $(id -u):$(id -g)" | ||||||
|  | chown -R "$(id -u):$(id -g)" /data/logs | ||||||
|  |  | ||||||
| # Handle IPV6 settings | # Handle IPV6 settings | ||||||
| /bin/handle-ipv6-setting /etc/nginx/conf.d | /bin/handle-ipv6-setting /etc/nginx/conf.d | ||||||
| /bin/handle-ipv6-setting /data/nginx | /bin/handle-ipv6-setting /data/nginx | ||||||
|  |  | ||||||
|  | # ref: https://github.com/linuxserver/docker-baseimage-alpine/blob/master/root/etc/cont-init.d/01-envfile | ||||||
|  |  | ||||||
|  | # in s6, environmental variables are written as text files for s6 to monitor | ||||||
|  | # search through full-path filenames for files ending in "__FILE" | ||||||
|  | echo "❯ Secrets-init ..." | ||||||
|  | for FILENAME in $(find /var/run/s6/container_environment/ | grep "__FILE$"); do | ||||||
|  | 	echo "[secret-init] Evaluating ${FILENAME##*/} ..." | ||||||
|  |  | ||||||
|  | 	# set SECRETFILE to the contents of the full-path textfile | ||||||
|  | 	SECRETFILE=$(cat "${FILENAME}") | ||||||
|  | 	# if SECRETFILE exists / is not null | ||||||
|  | 	if [[ -f "${SECRETFILE}" ]]; then | ||||||
|  | 		# strip the appended "__FILE" from environmental variable name ... | ||||||
|  | 		STRIPFILE=$(echo "${FILENAME}" | sed "s/__FILE//g") | ||||||
|  | 		# echo "[secret-init] Set STRIPFILE to ${STRIPFILE}"  # DEBUG - rm for prod! | ||||||
|  |  | ||||||
|  | 		# ... and set value to contents of secretfile | ||||||
|  | 		# since s6 uses text files, this is effectively "export ..." | ||||||
|  | 		printf $(cat "${SECRETFILE}") > "${STRIPFILE}" | ||||||
|  | 		# echo "[secret-init] Set ${STRIPFILE##*/} to $(cat ${STRIPFILE})"  # DEBUG - rm for prod!" | ||||||
|  | 		echo "[secret-init] Success! ${STRIPFILE##*/} set from ${FILENAME##*/}" | ||||||
|  |  | ||||||
|  | 	else | ||||||
|  | 		echo "[secret-init] cannot find secret in ${FILENAME}" | ||||||
|  | 	fi | ||||||
|  | done | ||||||
|  |  | ||||||
| echo | echo | ||||||
| echo "------------------------------------- | echo "------------------------------------- | ||||||
|  _   _ ____  __  __ |  _   _ ____  __  __ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user