mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 08:45:02 +01:00
retire uptime
This commit is contained in:
parent
1c94ed5f5d
commit
0d9250c75c
5 changed files with 11 additions and 61 deletions
|
|
@ -1,42 +0,0 @@
|
|||
{ lib, config, ... }: {
|
||||
virtualisation.oci-containers.containers.uptime = {
|
||||
/*
|
||||
uptime:
|
||||
container_name: uptime
|
||||
image: "docker.noratrieb.dev/uptime:50d15bc4"
|
||||
restart: always
|
||||
volumes:
|
||||
- "/apps/uptime:/app/config"
|
||||
environment:
|
||||
UPTIME_CONFIG_PATH: /app/config/uptime.json
|
||||
ports:
|
||||
- "5010:3000"
|
||||
*/
|
||||
|
||||
image = "docker.noratrieb.dev/uptime:50d15bc4";
|
||||
volumes = [
|
||||
"${./uptime.json}:/uptime.json"
|
||||
"/var/lib/uptime:/data"
|
||||
];
|
||||
environment = {
|
||||
UPTIME_CONFIG_PATH = "/uptime.json";
|
||||
};
|
||||
ports = [ "127.0.0.1:5010:3000" ];
|
||||
login = {
|
||||
registry = "docker.noratrieb.dev";
|
||||
username = "nils";
|
||||
passwordFile = config.age.secrets.docker_registry_password.path;
|
||||
};
|
||||
};
|
||||
|
||||
services.custom-backup.jobs = [
|
||||
{
|
||||
app = "uptime";
|
||||
file = "/var/lib/uptime/uptime.db";
|
||||
}
|
||||
];
|
||||
|
||||
system.activationScripts.makeUptimeDir = lib.stringAfter [ "var" ] ''
|
||||
mkdir -p /var/lib/uptime/
|
||||
'';
|
||||
}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"interval_seconds": 30,
|
||||
"db_url": "/data/uptime.db",
|
||||
"websites": []
|
||||
}
|
||||
|
|
@ -41,7 +41,6 @@ http_hosts=(
|
|||
grafana.noratrieb.dev
|
||||
hugo-chat.noratrieb.dev
|
||||
api.hugo-chat.noratrieb.dev/api/v2/rooms
|
||||
uptime.noratrieb.dev
|
||||
www.noratrieb.dev
|
||||
|
||||
# legacy:
|
||||
|
|
|
|||
|
|
@ -182,7 +182,6 @@
|
|||
# apps
|
||||
./apps/widetom
|
||||
./apps/hugo-chat
|
||||
./apps/uptime
|
||||
./apps/killua
|
||||
./apps/forgejo
|
||||
./apps/openolat
|
||||
|
|
|
|||
|
|
@ -3,12 +3,6 @@ www.noratrieb.dev {
|
|||
redir https://noratrieb.dev{uri} permanent
|
||||
}
|
||||
|
||||
uptime.noratrieb.dev {
|
||||
log
|
||||
encode zstd gzip
|
||||
reverse_proxy * localhost:5010
|
||||
}
|
||||
|
||||
hugo-chat.noratrieb.dev {
|
||||
log
|
||||
encode zstd gzip
|
||||
|
|
@ -22,11 +16,6 @@ api.hugo-chat.noratrieb.dev {
|
|||
reverse_proxy * localhost:5001
|
||||
}
|
||||
|
||||
bisect-rustc.noratrieb.dev {
|
||||
log
|
||||
redir https://github.com/Noratrieb/cargo-bisect-rustc-service?tab=readme-ov-file#cargo-bisect-rustc-service
|
||||
}
|
||||
|
||||
docker.noratrieb.dev {
|
||||
log
|
||||
reverse_proxy * localhost:5000
|
||||
|
|
@ -60,7 +49,17 @@ upload.files.noratrieb.dev {
|
|||
}
|
||||
|
||||
################################################################
|
||||
# redirects
|
||||
# retired
|
||||
|
||||
bisect-rustc.noratrieb.dev {
|
||||
log
|
||||
redir https://github.com/Noratrieb/cargo-bisect-rustc-service?tab=readme-ov-file#cargo-bisect-rustc-service
|
||||
}
|
||||
|
||||
uptime.noratrieb.dev {
|
||||
log
|
||||
redir https://github.com/Noratrieb/uptime?tab=readme-ov-file#uptime
|
||||
}
|
||||
|
||||
blog.noratrieb.dev {
|
||||
log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue