mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-01 17:50:51 +02:00
Status working now
This commit is contained in:
parent
a42a771ece
commit
d63f558eb5
3 changed files with 18 additions and 10 deletions
|
@ -15,7 +15,6 @@ in
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = inputs.homepage;
|
root = inputs.homepage;
|
||||||
default = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."www.julienmalka.me" = {
|
services.nginx.virtualHosts."www.julienmalka.me" = {
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
|
http, 200, Lisa, https://google.com
|
||||||
http, 200, Homepage, https://julienmalka.me
|
http, 200, Homepage, https://julienmalka.me
|
||||||
http, 200, CI, https://ci.julienmalka.me
|
http, 200, CI, https://ci.julienmalka.me
|
||||||
|
http, 200, Jellyfin, https://tv.julienmalka.me
|
||||||
|
http, 200, Transmission, https://downloads.julienmalka.me
|
||||||
|
http, 200, Sonarr, https://series.julienmalka.me
|
||||||
|
http, 200, Radarr, https://films.julienmalka.me
|
||||||
|
http, 200, Jackett, https://jackett.julienmalka.me/UI/Dashboard
|
||||||
ping, 0, Newton, newton.julienmalka.me
|
ping, 0, Newton, newton.julienmalka.me
|
||||||
|
http, 200, Cloud, cloud.julienmalka.me
|
||||||
|
|
|
|
@ -5,7 +5,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
options.luj.jackett = {
|
options.luj.status = {
|
||||||
enable = mkEnableOption "activate status page";
|
enable = mkEnableOption "activate status page";
|
||||||
nginx.enable = mkEnableOption "activate nginx";
|
nginx.enable = mkEnableOption "activate nginx";
|
||||||
nginx.subdomain = mkOption {
|
nginx.subdomain = mkOption {
|
||||||
|
@ -16,16 +16,19 @@ in
|
||||||
config = mkIf cfg.enable (
|
config = mkIf cfg.enable (
|
||||||
mkMerge [{
|
mkMerge [{
|
||||||
systemd = {
|
systemd = {
|
||||||
timers.simple-timer = {
|
timers.tinystatus = {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = [ "timers.target" ];
|
||||||
partOf = [ "tinystatus.service" ];
|
partOf = [ "tinystatus.service" ];
|
||||||
timerConfig.OnCalendar = "minutely";
|
timerConfig.OnCalendar = "*-*-* *:05,15,25,35,45,55:00";
|
||||||
|
timerConfig.Unit = "tinystatus.service";
|
||||||
};
|
};
|
||||||
services.tinystatus = {
|
services.tinystatus = {
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
|
path = [ pkgs.gawk pkgs.gnused pkgs.curl pkgs.netcat pkgs.unixtools.ping ];
|
||||||
script = ''
|
script = ''
|
||||||
mkdir -p /var/www/status
|
mkdir -p /var/www/status
|
||||||
${pkgs.tinystatus}/bin/tinystatus ${./checks.csv} > /var/www/status/index.html
|
${pkgs.tinystatus}/bin/tinystatus ${./checks.csv} > /var/www/status/index.html
|
||||||
|
${pkgs.gnused}/bin/sed -i 's/tinystatus/Services status/g' /var/www/status/index.html
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue