2022-05-26 10:55:06 +00:00
|
|
|
{config, pkgs, ...}:
|
|
|
|
let
|
|
|
|
caddyDir = "/var/lib/caddy";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.caddy = {
|
|
|
|
enable = true;
|
|
|
|
email = "lucazeau.alexandre@gmail.com";
|
2022-07-02 18:20:21 +00:00
|
|
|
extraConfig = ''
|
|
|
|
|
2022-05-26 10:55:06 +00:00
|
|
|
storage file_system {
|
2022-07-02 18:20:21 +00:00
|
|
|
root * ${caddyDir}
|
2022-05-26 10:55:06 +00:00
|
|
|
}
|
2022-07-02 18:20:21 +00:00
|
|
|
|
2022-05-26 10:55:06 +00:00
|
|
|
https://git.atlanticaweb.fr {
|
|
|
|
encode gzip
|
|
|
|
reverse_proxy http://localhost:3001
|
|
|
|
}
|
2023-04-14 14:45:23 +00:00
|
|
|
https://films.atlanticaweb.fr {
|
|
|
|
encode gzip
|
|
|
|
reverse_proxy http://localhost:8096
|
|
|
|
}
|
2023-03-30 15:10:38 +00:00
|
|
|
https://pocket.atlanticaweb.fr {
|
|
|
|
encode gzip
|
2023-12-28 12:54:54 +00:00
|
|
|
reverse_proxy http://localhost:8080
|
2023-03-30 15:10:38 +00:00
|
|
|
}
|
2023-12-28 18:11:02 +00:00
|
|
|
https://bin.atlanticaweb.fr {
|
|
|
|
reverse_proxy http://localhost:8081
|
2022-10-19 18:12:36 +00:00
|
|
|
}
|
2022-05-26 10:55:06 +00:00
|
|
|
atlanticaweb.fr {
|
|
|
|
root * /srv/www/atlanticaweb.fr
|
|
|
|
encode gzip zstd
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
atlanticaweb.fr:2021 {
|
|
|
|
metrics
|
|
|
|
}
|
2023-07-28 18:11:10 +00:00
|
|
|
https://sync.atlanticaweb.fr {
|
|
|
|
reverse_proxy http://localhost:8384 {
|
|
|
|
header_up Host {upstream_hostport}
|
|
|
|
}
|
|
|
|
}
|
2022-05-26 10:55:06 +00:00
|
|
|
www.atlanticaweb.fr {
|
|
|
|
redir https://atlanticaweb.fr{uri}
|
|
|
|
}
|
|
|
|
pizzajoffre.fr {
|
|
|
|
root * /srv/www/pizzajoffre.fr
|
|
|
|
encode gzip zstd
|
|
|
|
file_server
|
|
|
|
}
|
|
|
|
www.pizzajoffre.fr {
|
|
|
|
redir https://pizzajoffre.fr{uri}
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
users.users.caddy = {
|
|
|
|
group = "caddy";
|
|
|
|
uid = config.ids.uids.caddy;
|
|
|
|
home = caddyDir;
|
|
|
|
createHome = true;
|
|
|
|
extraGroups = [ "users" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
users.groups.caddy.gid = config.ids.uids.caddy;
|
2023-12-28 18:11:02 +00:00
|
|
|
services = {
|
|
|
|
jellyfin.enable = true;
|
|
|
|
shiori.enable = true;
|
|
|
|
microbin = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
MICROBIN_PORT = 8081;
|
|
|
|
MICROBIN_NO_LISTING = true;
|
|
|
|
MICROBIN_ENABLE_BURN_AFTER = true;
|
|
|
|
MICROBIN_QR = true;
|
|
|
|
MICROBIN_PUBLIC_PATH = "https://bin.atlanticaweb.fr";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-05-26 10:55:06 +00:00
|
|
|
}
|