nitter: Proxy through nginx
This commit is contained in:
parent
0fe049ad36
commit
2d2e0f9022
4 changed files with 36 additions and 0 deletions
|
@ -69,5 +69,9 @@
|
|||
nitter-config = {
|
||||
file = ./nitter/config.age;
|
||||
};
|
||||
|
||||
nitter-auth = {
|
||||
file = ./nitter/auth.age;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
10
agenix/hosts/sail/nitter/auth.age
Normal file
10
agenix/hosts/sail/nitter/auth.age
Normal file
|
@ -0,0 +1,10 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 MtGp6g C5+QHpB3eGllrFooaLK+9oQD85593tINMrFULP6BwkA
|
||||
hWYPmH2nEBiL70xoHpY5zPpYP2GvZNrRFaheCyyFgb4
|
||||
-> ssh-ed25519 NbV4hw Jf+0XhUx+OyLPijrbWe9r0ZPjvG0fpKTJPzRo2lBSBQ
|
||||
PkFvC59DidoMKbGFxdLeS+A2WRofeUsLl5FRSezWVIE
|
||||
-> qJKfV-grease
|
||||
T2novACQv6OJIJrNnNVby8vYTW38Tg
|
||||
--- 1v41uCUA6qXJNkzYDAQhRKnJrDcQMaURSVlFFpsfA8o
|
||||
S“¨\k0?¹ã€ZŠ4þJ"~–…›ZJæJ¹9í$éòGÿâÉ%,ä7I¯
vÄÜà!ñö¡±´zzõ¹’s“Èiü X
|
||||
"ëØ_¯K
|
|
@ -23,4 +23,5 @@ in
|
|||
"agenix/hosts/sail/freshrss/databasePassword.age".publicKeys = sail;
|
||||
|
||||
"agenix/hosts/sail/nitter/config.age".publicKeys = sail;
|
||||
"agenix/hosts/sail/nitter/auth.age".publicKeys = sail;
|
||||
}
|
||||
|
|
|
@ -22,4 +22,25 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."nitter.only.internal" = {
|
||||
listen = [
|
||||
{
|
||||
addr = "127.0.0.1";
|
||||
port = 80;
|
||||
}
|
||||
];
|
||||
|
||||
forceSSL = false;
|
||||
enableACME = false;
|
||||
basicAuthFile = config.age.secrets.nitter-auth.path;
|
||||
|
||||
locations."/" = {
|
||||
recommendedProxySettings = true;
|
||||
proxyPass = "http://127.0.0.1:8001";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue