proxy: split media proxy out

This commit is contained in:
41666 2024-04-21 11:34:19 -04:00
parent 6c4375400b
commit db0b32abe9

View file

@ -138,7 +138,9 @@ in {
proxy_request_buffering off; proxy_request_buffering off;
''; '';
}; };
} // defaultConfig // { forceSSL = false; };
"media.sapphic.engineer" = rec {
locations."/proxy" = { locations."/proxy" = {
recommendedProxySettings = true; recommendedProxySettings = true;
proxyPass = "http://se"; proxyPass = "http://se";
@ -157,6 +159,7 @@ in {
proxy_cache_use_stale error timeout invalid_header updating; proxy_cache_use_stale error timeout invalid_header updating;
''; '';
}; };
locations."/media" = locations."/proxy";
} // defaultConfig // { forceSSL = false; }; } // defaultConfig // { forceSSL = false; };
}; };
}; };