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;
|
proxy.enable = true;
|
||||||
};
|
};
|
||||||
|
"/api/live/ws" = {
|
||||||
|
proxy = {
|
||||||
|
enable = true;
|
||||||
|
websocket.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
grafana = {
|
grafana = {
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,13 @@ in {
|
||||||
X-Plex-Device-Vendor = "$http_x_plex_device_vendor";
|
X-Plex-Device-Vendor = "$http_x_plex_device_vendor";
|
||||||
X-Plex-Model = "$http_x_plex_model";
|
X-Plex-Model = "$http_x_plex_model";
|
||||||
};
|
};
|
||||||
|
websocketLocation = {
|
||||||
|
proxy = {
|
||||||
|
enable = true;
|
||||||
|
websocket.enable = true;
|
||||||
|
inherit headers;
|
||||||
|
};
|
||||||
|
};
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxy = {
|
proxy = {
|
||||||
|
|
@ -50,13 +57,8 @@ in {
|
||||||
inherit headers;
|
inherit headers;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"/websockets/" = {
|
"/websockets/" = websocketLocation;
|
||||||
proxy = {
|
"/:/websockets/" = websocketLocation;
|
||||||
enable = true;
|
|
||||||
websocket.enable = true;
|
|
||||||
inherit headers;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
name.shortServer = mkDefault "plex";
|
name.shortServer = mkDefault "plex";
|
||||||
copyFromVhost = mkDefault "plex";
|
copyFromVhost = mkDefault "plex";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue