From 9d4c60dccc8e7e777ad139a82e9f61feda9d21fc Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Oct 2022 11:07:40 +0200 Subject: Add ability for plugins to register ws routes --- support/nginx/peertube | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'support/nginx/peertube') diff --git a/support/nginx/peertube b/support/nginx/peertube index abb83d5c4..f6f754b58 100644 --- a/support/nginx/peertube +++ b/support/nginx/peertube @@ -132,6 +132,11 @@ server { try_files /dev/null @api_websocket; } + # Plugin websocket routes + location ~ ^/plugins/[^/]+(/[^/]+)?/ws/ { + try_files /dev/null @api_websocket; + } + ## # Performance optimizations # For extra performance please refer to https://github.com/denji/nginx-tuning -- cgit v1.2.3