Skip to content

Commit

Permalink
Merge pull request #732 from mlibrary/fulcrum_websocket
Browse files Browse the repository at this point in the history
add fulcrum apache rewrite rule: websocket => puma
  • Loading branch information
antmoth authored Oct 28, 2024
2 parents a9f8a6a + 7b460a7 commit 2b8b5ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/profile/www_lib/vhosts/fulcrum.pp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
comment => 'Proxy metrics requests to Yabeda/Prometheus exporter',
rewrite_rule => "^/metrics$ http://${app_host}:9394/metrics [P]",
},
{
comment => 'Proxy WebSocket requests to Puma',
rewrite_cond => ['%{HTTP:Upgrade} =websocket [NC]', '%{HTTP:Connection} upgrade [NC]'],
rewrite_rule => "^/(.*)$ ws://${app_host}:${app_port}/\$1 [P]",
},
{
comment => 'Reverse proxy application to app hostname and port',
rewrite_cond => ['%{REQUEST_URI} !^/Shibboleth.sso'],
Expand Down

0 comments on commit 2b8b5ea

Please sign in to comment.