diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-11 11:07:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-11 11:11:04 +0200 |
commit | 9d4c60dccc8e7e777ad139a82e9f61feda9d21fc (patch) | |
tree | 2931338f340b398d36c43575fea95cf1fbbfeb4c /support/nginx/peertube | |
parent | 9866921cbf3f8f0925f7ffb3a231d5dfe2d30953 (diff) | |
download | PeerTube-9d4c60dccc8e7e777ad139a82e9f61feda9d21fc.tar.gz PeerTube-9d4c60dccc8e7e777ad139a82e9f61feda9d21fc.tar.zst PeerTube-9d4c60dccc8e7e777ad139a82e9f61feda9d21fc.zip |
Add ability for plugins to register ws routes
Diffstat (limited to 'support/nginx/peertube')
-rw-r--r-- | support/nginx/peertube | 5 |
1 files changed, 5 insertions, 0 deletions
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 { | |||
132 | try_files /dev/null @api_websocket; | 132 | try_files /dev/null @api_websocket; |
133 | } | 133 | } |
134 | 134 | ||
135 | # Plugin websocket routes | ||
136 | location ~ ^/plugins/[^/]+(/[^/]+)?/ws/ { | ||
137 | try_files /dev/null @api_websocket; | ||
138 | } | ||
139 | |||
135 | ## | 140 | ## |
136 | # Performance optimizations | 141 | # Performance optimizations |
137 | # For extra performance please refer to https://github.com/denji/nginx-tuning | 142 | # For extra performance please refer to https://github.com/denji/nginx-tuning |