nitter: Refactor
This commit is contained in:
parent
c43ef3fe59
commit
1f3d539f75
1 changed files with 13 additions and 29 deletions
|
@ -1,5 +1,11 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
proxy-no-auth = {
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = "http://127.0.0.1:8001";
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
virtualisation.arion.projects.nitter.settings = {
|
virtualisation.arion.projects.nitter.settings = {
|
||||||
services = {
|
services = {
|
||||||
|
@ -43,35 +49,13 @@
|
||||||
proxyPass = "http://127.0.0.1:8001";
|
proxyPass = "http://127.0.0.1:8001";
|
||||||
};
|
};
|
||||||
|
|
||||||
locations."/pic/" = {
|
# Disable auth for certain paths
|
||||||
recommendedProxySettings = true;
|
locations."/pic/" = proxy-no-auth;
|
||||||
proxyPass = "http://127.0.0.1:8001";
|
locations."/video/" = proxy-no-auth;
|
||||||
};
|
locations."/favicon.ico" = proxy-no-auth;
|
||||||
|
locations."/favicon-32x32.png" = proxy-no-auth;
|
||||||
locations."/video/" = {
|
locations."/favicon-16x16.png" = proxy-no-auth;
|
||||||
recommendedProxySettings = true;
|
locations."/apple-touch-icon.png" = proxy-no-auth;
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue