yuzuru/invidious: Enable auto-restarts

This is not the cleanest way to make it work reliably, but since this is
an upstream problem, I can’t do much else.
This commit is contained in:
Simon Bruder 2021-12-09 21:43:29 +01:00
parent a9f0b42f2f
commit 5a75e8e443
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -40,6 +40,10 @@
extraSettingsFile = config.sops.secrets.invidious-extra-settings.path; extraSettingsFile = config.sops.secrets.invidious-extra-settings.path;
}; };
systemd.services.invidious.serviceConfig = {
Restart = "on-failure";
};
services.nginx.virtualHosts."iv.sbruder.xyz" = { services.nginx.virtualHosts."iv.sbruder.xyz" = {
locations = { locations = {
"/robots.txt".return = "200 'User-agent: *\\nDisallow: /'"; "/robots.txt".return = "200 'User-agent: *\\nDisallow: /'";