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;
|
file = ./nitter/config.age;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nitter-guest-accounts = {
|
||||||
|
file = ./nitter/guestAccounts.age;
|
||||||
|
mode = "555";
|
||||||
|
};
|
||||||
|
|
||||||
anonymous-overflow-config = {
|
anonymous-overflow-config = {
|
||||||
file = ./anonymous-overflow/config.age;
|
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/mosquitto/passwordWeewx.age".publicKeys = tanker;
|
||||||
|
|
||||||
"agenix/hosts/tanker/nitter/config.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;
|
"agenix/hosts/tanker/anonymous-overflow/config.age".publicKeys = tanker;
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,10 @@ in
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
StateDirectory = "nitter";
|
StateDirectory = "nitter";
|
||||||
LoadCredential = [ "config:${config.age.secrets.nitter-config.path}" ];
|
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,
|
# Some parts of Nitter expect `public` folder in working directory,
|
||||||
# see https://github.com/zedeus/nitter/issues/414
|
# see https://github.com/zedeus/nitter/issues/414
|
||||||
WorkingDirectory = "${nitter-pkg}/share/nitter";
|
WorkingDirectory = "${nitter-pkg}/share/nitter";
|
||||||
|
|
Loading…
Reference in a new issue