Skip to content

Commit

Permalink
fix(wsgi): alias the API server name
Browse files Browse the repository at this point in the history
Fixes packit/packit-service#2529

Signed-off-by: Matej Focko <mfocko@redhat.com>
  • Loading branch information
mfocko committed Jan 17, 2025
1 parent 338767f commit c4dc93d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions files/scripts/run_httpd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ else
SERVER_NAME="dashboard.${DEPLOYMENT}.packit.dev"
fi

# [FIXME] This is a dirty hack to workaround 403 by the httpd server itself when
# open HTTP/2 connection gets reused
API_SERVER_NAME="${DEPLOYMENT}.packit.dev"

# See "mod_wsgi-express-3 start-server --help" for details on
# these options, and the configuration documentation of mod_wsgi:
# https://modwsgi.readthedocs.io/en/master/configuration.html
Expand All @@ -21,6 +25,7 @@ exec mod_wsgi-express-3 start-server \
--ssl-certificate-file /secrets/fullchain.pem \
--ssl-certificate-key-file /secrets/privkey.pem \
--server-name ${SERVER_NAME} \
--server-alias ${API_SERVER_NAME} \
--processes 2 \
--locale "C.UTF-8" \
/usr/share/packit_dashboard/packit_dashboard.wsgi

0 comments on commit c4dc93d

Please sign in to comment.