mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 16:21:32 +00:00
proxy
This commit is contained in:
parent
fbd0110193
commit
099f76d6e7
|
@ -1,4 +1,4 @@
|
||||||
# modify time: 202310251616, you can modify here to trigger Docker Build action
|
# modify time: 20231025650, you can modify here to trigger Docker Build action
|
||||||
# from Dockerfile: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/Dockerfile
|
# from Dockerfile: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/Dockerfile
|
||||||
# from image: https://hub.docker.com/r/jc21/nginx-proxy-manager
|
# from image: https://hub.docker.com/r/jc21/nginx-proxy-manager
|
||||||
|
|
||||||
|
|
|
@ -3,14 +3,14 @@
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
nginx_proxy(){
|
nginx_proxy(){
|
||||||
|
|
||||||
if [ ! -f /data/nginx/proxy_host/initproxy.conf ] || [ $(stat -c %Y /etc/shadow) -ge $(stat -c %Y /data/nginx/proxy_host/initproxy.conf) ]
|
|
||||||
then
|
|
||||||
cp /etc/initproxy.conf /data/nginx/proxy_host/
|
cp /etc/initproxy.conf /data/nginx/proxy_host/
|
||||||
echo "Update initproxy.conf to Nginx"
|
# if [ ! -f /data/nginx/proxy_host/initproxy.conf ] || [ $(stat -c %Y /etc/shadow) -ge $(stat -c %Y /data/nginx/proxy_host/initproxy.conf) ]
|
||||||
else
|
# then
|
||||||
echo "Don't need to update initproxy.conf to Nginx"
|
# cp /etc/initproxy.conf /data/nginx/proxy_host/
|
||||||
fi
|
# echo "Update initproxy.conf to Nginx"
|
||||||
|
# else
|
||||||
|
# echo "Don't need to update initproxy.conf to Nginx"
|
||||||
|
# fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue