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, ... }:
{ modulesPath, ... }:
{ self, caddy-with-plugins, ... }:
{ pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/virtualisation/lxc-container.nix")
@ -8,7 +8,6 @@
../../users/erwin
./backup.nix
./forgejo
./caddy.nix
];
eboskma = {
@ -16,6 +15,16 @@
enable = 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 = {
enable = true;
remote-builders = true;