nitter: pass config via LoadCredential
This commit is contained in:
parent
7a19b1f785
commit
70d1f841f5
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,6 @@
|
||||||
|
|
||||||
nitter-config = {
|
nitter-config = {
|
||||||
file = ./nitter/config.age;
|
file = ./nitter/config.age;
|
||||||
mode = "444";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nitter-auth = {
|
nitter-auth = {
|
||||||
|
|
|
@ -18,7 +18,8 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
StateDirectory = "nitter";
|
StateDirectory = "nitter";
|
||||||
Environment = [ "NITTER_CONF_FILE=${config.age.secrets.nitter-config.path}" ];
|
LoadCredential = [ "config:${config.age.secrets.nitter-config.path}" ];
|
||||||
|
Environment = [ "NITTER_CONF_FILE=%d/config" ];
|
||||||
# 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