1
0
Fork 0

nitter: Simple guestAccounts script

This commit is contained in:
Daniel Kempkens 2023-09-17 23:25:43 +02:00
parent 52bb282190
commit d8a1943d20
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
4 changed files with 10 additions and 1 deletions

View file

@ -97,6 +97,11 @@
file = ./nitter/config.age;
};
nitter-guest-accounts = {
file = ./nitter/guestAccounts.age;
mode = "555";
};
anonymous-overflow-config = {
file = ./anonymous-overflow/config.age;
};

Binary file not shown.

View file

@ -41,6 +41,7 @@ in
"agenix/hosts/tanker/mosquitto/passwordWeewx.age".publicKeys = tanker;
"agenix/hosts/tanker/nitter/config.age".publicKeys = tanker;
"agenix/hosts/tanker/nitter/guestAccounts.age".publicKeys = tanker;
"agenix/hosts/tanker/anonymous-overflow/config.age".publicKeys = tanker;

View file

@ -15,7 +15,10 @@ in
DynamicUser = true;
StateDirectory = "nitter";
LoadCredential = [ "config:${config.age.secrets.nitter-config.path}" ];
Environment = [ "NITTER_CONF_FILE=%d/config" ];
Environment = [
"NITTER_CONF_FILE=%d/config"
"NITTER_ACCOUNTS_FILE=/var/lib/nitter/guest_accounts.json"
];
# Some parts of Nitter expect `public` folder in working directory,
# see https://github.com/zedeus/nitter/issues/414
WorkingDirectory = "${nitter-pkg}/share/nitter";