2023-10-21 17:55:11 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ./default.nix ];
|
2023-05-25 17:05:25 +01:00
|
|
|
services.traefik.dynamicConfigOptions = {
|
|
|
|
http = {
|
|
|
|
routers.gitea = {
|
|
|
|
rule = "Host(`git.xenia.me.uk`)";
|
2023-10-21 17:55:11 +01:00
|
|
|
entryPoints = [ "http" "https" ];
|
2023-05-25 17:05:25 +01:00
|
|
|
service = "gitea-websecure";
|
2023-10-21 17:55:11 +01:00
|
|
|
tls = { certResolver = "default"; };
|
2023-05-25 17:05:25 +01:00
|
|
|
};
|
2023-10-21 17:55:11 +01:00
|
|
|
services.gitea-websecure.loadBalancer.servers =
|
2023-10-27 05:56:55 +01:00
|
|
|
[{ url = "http://localhost:3100"; }];
|
2023-05-25 17:05:25 +01:00
|
|
|
};
|
2023-05-11 11:54:42 +01:00
|
|
|
};
|
|
|
|
}
|