1
0
Fork 0

nitter: Proxy through nginx

This commit is contained in:
Daniel Kempkens 2023-02-13 20:04:45 +01:00
parent 0fe049ad36
commit 2d2e0f9022
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 36 additions and 0 deletions

View file

@ -69,5 +69,9 @@
nitter-config = {
file = ./nitter/config.age;
};
nitter-auth = {
file = ./nitter/auth.age;
};
};
}

View 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

View file

@ -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;
}

View file

@ -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";
};
};
};
}