murex: fix 502 bad gateway
This commit is contained in:
parent
a1842f265f
commit
432bd49810
@ -189,6 +189,10 @@
|
|||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://localhost:${toString config.services.octoprint.port}";
|
proxyPass = "http://localhost:${toString config.services.octoprint.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
|
# do not cache that octoprint is inaccessible on startup
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_cache off;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
locations."/webcam/".proxyPass = "http://localhost:5050/?action=stream";
|
locations."/webcam/".proxyPass = "http://localhost:5050/?action=stream";
|
||||||
locations."/webcampic/".proxyPass = "http://localhost:5050/?action=snapshot";
|
locations."/webcampic/".proxyPass = "http://localhost:5050/?action=snapshot";
|
||||||
|
Loading…
Reference in New Issue
Block a user