1
0
Fork 0

nitter: Refactor

This commit is contained in:
Daniel Kempkens 2023-02-13 22:06:22 +01:00
parent c43ef3fe59
commit 1f3d539f75
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -1,5 +1,11 @@
{ config, ... }:
let
proxy-no-auth = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
in
{
virtualisation.arion.projects.nitter.settings = {
services = {
@ -43,35 +49,13 @@
proxyPass = "http://127.0.0.1:8001";
};
locations."/pic/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
locations."/video/" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
locations."/favicon.ico" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
locations."/favicon-32x32.png" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
locations."/favicon-16x16.png" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
locations."/apple-touch-icon.png" = {
recommendedProxySettings = true;
proxyPass = "http://127.0.0.1:8001";
};
# Disable auth for certain paths
locations."/pic/" = proxy-no-auth;
locations."/video/" = proxy-no-auth;
locations."/favicon.ico" = proxy-no-auth;
locations."/favicon-32x32.png" = proxy-no-auth;
locations."/favicon-16x16.png" = proxy-no-auth;
locations."/apple-touch-icon.png" = proxy-no-auth;
};
};
}