1
0
Fork 0

Compare commits

..

3 commits

Author SHA1 Message Date
c950f7098e
nginx: set worker_processes to auto
All checks were successful
Build / build-arm64-linux (push) Successful in 8m31s
Build / build-amd64-linux (push) Successful in 26m17s
2023-09-18 09:08:33 +02:00
68ce0f16d9
Update deps 2023-09-17 23:26:11 +02:00
d8a1943d20
nitter: Simple guestAccounts script 2023-09-17 23:25:43 +02:00
6 changed files with 16 additions and 3 deletions

View file

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

Binary file not shown.

View file

@ -323,8 +323,8 @@ in
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "L3MON4D3"; owner = "L3MON4D3";
repo = "LuaSnip"; repo = "LuaSnip";
rev = "a86bcf6bd729ca1ee90312bce9ca66a44f806764"; rev = "3657c3f3cb2214a681fc7e95b6ffb509d076ebfb";
sha256 = "10yzwxbnl8chcakr3hlc86jxhi1d8i9hbp5swfywabp4dhbyhbbv"; sha256 = "1w7jzcwkyikl4v5irb5yc0v5vs0k758mdwvgnscc9zzwsg6vs642";
fetchSubmodules = false; fetchSubmodules = false;
}; };
}; };

View file

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

View file

@ -24,5 +24,9 @@
access_log /var/log/nginx/access.log combined_anon buffer=32k flush=5m; access_log /var/log/nginx/access.log combined_anon buffer=32k flush=5m;
''; '';
appendConfig = ''
worker_processes auto;
'';
}; };
} }

View file

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