all: use shared caddy and frp config

This commit is contained in:
Adithya 2024-07-18 22:05:29 +05:30
parent 514eca685c
commit b5d73083bd
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
6 changed files with 28 additions and 27 deletions

View file

@ -1,7 +0,0 @@
_: {
services.caddy = {
enable = true;
acmeCA = "https://acme-v02.api.letsencrypt.org/directory";
email = "admin@acomputer.lol";
};
}

View file

@ -1,3 +1,9 @@
_: { _: {
imports = [ ./apps ./caddy.nix ./btrfs.nix ./ssh.nix ]; imports = [
./apps
./btrfs.nix
./ssh.nix
../../shared/caddy.nix
../../shared/frp.nix
];
} }

View file

@ -1,14 +0,0 @@
_: {
services.caddy = {
enable = true;
acmeCA = "https://acme-v02.api.letsencrypt.org/directory";
email = "admin@acomputer.lol";
virtualHosts."frp.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 10.10.10.1:7500
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
'';
};
};
}

View file

@ -1,9 +1,18 @@
_: { _: {
imports = [ imports = [
./btrfs.nix
./caddy.nix
./ssh.nix
./apps ./apps
./btrfs.nix
./ssh.nix
../../shared/caddy.nix
../../shared/frp.nix
]; ];
services.caddy = {
virtualHosts."frp.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 10.10.10.1:7500
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
'';
};
};
} }

View file

@ -2,6 +2,8 @@ _: {
imports = [ imports = [
./btrfs.nix ./btrfs.nix
./ssh.nix ./ssh.nix
../../shared/caddy.nix
../../shared/frp.nix
]; ];
} }

View file

@ -1,3 +1,8 @@
_: { _: {
imports = [ ./btrfs.nix ./ssh.nix ]; imports = [
./btrfs.nix
./ssh.nix
../../shared/caddy.nix
../../shared/frp.nix
];
} }