mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(access): missing websocket proxy locations
This commit is contained in:
parent
0b2ff5cd1e
commit
7bcc75c059
2 changed files with 15 additions and 7 deletions
|
|
@ -29,6 +29,12 @@ in {
|
|||
"/" = {
|
||||
proxy.enable = true;
|
||||
};
|
||||
"/api/live/ws" = {
|
||||
proxy = {
|
||||
enable = true;
|
||||
websocket.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
grafana = {
|
||||
|
|
|
|||
|
|
@ -43,6 +43,13 @@ in {
|
|||
X-Plex-Device-Vendor = "$http_x_plex_device_vendor";
|
||||
X-Plex-Model = "$http_x_plex_model";
|
||||
};
|
||||
websocketLocation = {
|
||||
proxy = {
|
||||
enable = true;
|
||||
websocket.enable = true;
|
||||
inherit headers;
|
||||
};
|
||||
};
|
||||
locations = {
|
||||
"/" = {
|
||||
proxy = {
|
||||
|
|
@ -50,13 +57,8 @@ in {
|
|||
inherit headers;
|
||||
};
|
||||
};
|
||||
"/websockets/" = {
|
||||
proxy = {
|
||||
enable = true;
|
||||
websocket.enable = true;
|
||||
inherit headers;
|
||||
};
|
||||
};
|
||||
"/websockets/" = websocketLocation;
|
||||
"/:/websockets/" = websocketLocation;
|
||||
};
|
||||
name.shortServer = mkDefault "plex";
|
||||
copyFromVhost = mkDefault "plex";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue