Skip to content

Support for chaning the HTTP and HTTPS port that hosts will listen on #4127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Process folder /etc/nginx/conf.d for HTTP/HTTPS port migration
  • Loading branch information
snordmann committed Dec 16, 2024
commit 8d0ed27851e18fbc8a3d108a4eefd8d9ba9e1503
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -56,4 +59,5 @@ process_folder () {
chown -R "$PUID:$PGID" "$1"
}

process_folder /etc/nginx/conf.d
process_folder /data/nginx