Correction de configuration rp pour websocket

This commit is contained in:
Navas 2024-08-06 12:28:22 +02:00
parent c377187d86
commit 1ee15c664f

View file

@ -8,3 +8,8 @@ rp_vhost_cert: LIBRETICFR
rp_vhost_additional_conf: |
SSLProxyEngine On
ProxyErrorOverride Off
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket
RewriteRule /(.*) wss://{{ rp_vhost_backend_host }}/$1 [P,L]
RewriteCond %{HTTP:Upgrade} !=websocket
RewriteRule /(.*) https://{{ rp_vhost_backend_host }}/$1 [P,L]