gitea: Switch to caddy-proxy module

This commit is contained in:
Erwin Boskma 2024-06-10 11:32:11 +02:00
parent b232f0a2c8
commit 29627df807
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -1,5 +1,5 @@
{ self, ... }: { self, caddy-with-plugins, ... }:
{ modulesPath, ... }: { pkgs, modulesPath, ... }:
{ {
imports = [ imports = [
(modulesPath + "/virtualisation/lxc-container.nix") (modulesPath + "/virtualisation/lxc-container.nix")
@ -8,7 +8,6 @@
../../users/erwin ../../users/erwin
./backup.nix ./backup.nix
./forgejo ./forgejo
./caddy.nix
]; ];
eboskma = { eboskma = {
@ -16,6 +15,16 @@
enable = true; enable = true;
server = true; server = true;
}; };
caddy-proxy = {
enable = true;
package = caddy-with-plugins.packages.${pkgs.system}.caddy-with-cloudflare;
proxyHosts = [
{
externalHostname = "git.datarift.nl";
proxyAddress = "localhost:3000";
}
];
};
nix-common = { nix-common = {
enable = true; enable = true;
remote-builders = true; remote-builders = true;