mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-05-07 06:22:29 +00:00
Process folder /etc/nginx/conf.d for HTTP/HTTPS port migration
This commit is contained in:
parent
c377db5d62
commit
8d0ed27851
@ -45,6 +45,9 @@ process_folder () {
|
||||
HTTP_SED_REGEX='/ssl/! s/listen (\[::\]:)?[0-9]+/listen \1'$HTTP_PORT'/g'
|
||||
HTTPS_SED_REGEX='/ssl/ s/listen (\[::\]:)?[0-9]+/listen \1'$HTTPS_PORT'/g'
|
||||
|
||||
echo "Setting HTTP listen port to $HTTP_PORT in: $FILES"
|
||||
echo "Setting HTTPS listen port to $HTTPS_PORT in: $FILES"
|
||||
|
||||
for FILE in $FILES
|
||||
do
|
||||
echo "- ${FILE}"
|
||||
@ -56,4 +59,5 @@ process_folder () {
|
||||
chown -R "$PUID:$PGID" "$1"
|
||||
}
|
||||
|
||||
process_folder /etc/nginx/conf.d
|
||||
process_folder /data/nginx
|
||||
|
Loading…
x
Reference in New Issue
Block a user