mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
proxy
This commit is contained in:
parent
099f76d6e7
commit
a836e5d7fd
@ -1,4 +1,4 @@
|
||||
# modify time: 20231025650, you can modify here to trigger Docker Build action
|
||||
# modify time: 202310251750, you can modify here to trigger Docker Build action
|
||||
# from Dockerfile: https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/Dockerfile
|
||||
# from image: https://hub.docker.com/r/jc21/nginx-proxy-manager
|
||||
|
||||
|
@ -3,14 +3,14 @@
|
||||
set +e
|
||||
|
||||
nginx_proxy(){
|
||||
|
||||
if [ ! -f /data/nginx/proxy_host/initproxy.conf ] || [ $(stat -c %Y /etc/shadow) -ge $(stat -c %Y /data/nginx/proxy_host) ]
|
||||
then
|
||||
cp /etc/initproxy.conf /data/nginx/proxy_host/
|
||||
# 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/
|
||||
# echo "Update initproxy.conf to Nginx"
|
||||
# else
|
||||
# echo "Don't need to update initproxy.conf to Nginx"
|
||||
# fi
|
||||
echo "Update initproxy.conf to Nginx"
|
||||
else
|
||||
echo "Don't need to update initproxy.conf to Nginx"
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user