nitter: Simple guestAccounts script
This commit is contained in:
parent
52bb282190
commit
d8a1943d20
4 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
BIN
agenix/hosts/tanker/nitter/guestAccounts.age
Normal file
BIN
agenix/hosts/tanker/nitter/guestAccounts.age
Normal file
Binary file not shown.
|
@ -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;
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue