Browse Source

fix: [ntfy] add websocket support

upd
Valentin Lab 6 months ago
parent
commit
0bab1b82a4
  1. 7
      ntfy/metadata.yml

7
ntfy/metadata.yml

@ -26,8 +26,11 @@ uses:
apache-custom-rules: apache-custom-rules:
- !var-expand | - !var-expand |
ProxyPass /ws ws://${MASTER_BASE_SERVICE_NAME}:80/ws"
ProxyPassReverse /ws ws://${MASTER_BASE_SERVICE_NAME}:80/ws"
RewriteEngine On
RewriteCond %{HTTP:Upgrade} ^websocket$ [NC]
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteRule /(.*)$ ws://${MASTER_BASE_SERVICE_NAME}:80/\$1 [P,L]
<If "%{REQUEST_METHOD} == 'GET' && %{HTTPS} == 'off'"> <If "%{REQUEST_METHOD} == 'GET' && %{HTTPS} == 'off'">
RedirectMatch permanent "^/([-_A-Za-z0-9]{0,64})$" "https://%{SERVER_NAME}/$1" RedirectMatch permanent "^/([-_A-Za-z0-9]{0,64})$" "https://%{SERVER_NAME}/$1"

Loading…
Cancel
Save