organize
This commit is contained in:
parent
08b1cf4ec6
commit
9cd270405b
1 changed files with 0 additions and 33 deletions
|
@ -1,33 +0,0 @@
|
|||
{ ... }: {
|
||||
services.cron = {
|
||||
enable = true;
|
||||
systemCronJobs = [
|
||||
''0 0 * * * root mkdir -p /Storage/Data/Docker/sysctl.io/letsencrypt/; rsync -avr --delete root@framework-server:/Storage/Data/Docker/sysctl.io/letsencrypt/ /Storage/Data/Docker/sysctl.io/letsencrypt/''
|
||||
];
|
||||
};
|
||||
|
||||
# Containers
|
||||
virtualisation.oci-containers.containers."derp" = {
|
||||
image = "docker.io/fredliang/derper";
|
||||
environment = {
|
||||
DERP_ADDR = ":1443";
|
||||
DERP_CERT_DIR = "/app/certs";
|
||||
DERP_CERT_MODE = "manual";
|
||||
DERP_DOMAIN = "frankfurt.sysctl.io";
|
||||
DERP_STUN = "true";
|
||||
DERP_VERIFY_CLIENTS = "true";
|
||||
DERP_HTTP_PORT = "-1";
|
||||
};
|
||||
volumes = [
|
||||
"/var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock:ro"
|
||||
"/Storage/Data/Docker/sysctl.io/letsencrypt/external/*.sysctl.io/public.crt:/app/certs/frankfurt.sysctl.io.crt:ro"
|
||||
"/Storage/Data/Docker/sysctl.io/letsencrypt/external/*.sysctl.io/private.key:/app/certs/frankfurt.sysctl.io.key:ro"
|
||||
];
|
||||
ports = [
|
||||
"3478:3478/udp"
|
||||
"1443:1443/tcp"
|
||||
];
|
||||
log-driver = "journald";
|
||||
extraOptions = [ "--network=host" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue