fix weblate expose #376

Merged
DarkKirb merged 1 commit from fix-weblate into main 2024-03-23 14:53:17 +00:00
3 changed files with 16 additions and 1 deletions

View file

@ -26,6 +26,7 @@
./services/heisenbridge.nix ./services/heisenbridge.nix
./services/uptime-kuma.nix ./services/uptime-kuma.nix
./services/matrix-sliding-sync.nix ./services/matrix-sliding-sync.nix
./services/reverse-proxy.nix
./wireguard ./wireguard
./zfs.nix ./zfs.nix
]; ];

View file

@ -31,6 +31,7 @@
./services/loki.nix ./services/loki.nix
./services/prometheus.nix ./services/prometheus.nix
./services/yiff-stash.nix ./services/yiff-stash.nix
./services/reverse-proxy.nix
]; ];
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;

View file

@ -27,7 +27,20 @@ in {
services.caddy.virtualHosts = { services.caddy.virtualHosts = {
"hydra.chir.rs" = mkConfig "https://hydra.int.chir.rs"; "hydra.chir.rs" = mkConfig "https://hydra.int.chir.rs";
"weblate.chir.rs" = mkConfig "https://weblate.int.chir.rs"; "weblate.chir.rs" = mkConfig "https://weblate.int.chir.rs";
"weblate.int.chir.rs" = mkConfig "http://localhost:23432"; "weblate.int.chir.rs" = {
useACMEHost = "int.chir.rs";
logFormat = pkgs.lib.mkForce "";
extraConfig = ''
import baseConfig
reverse_proxy {
to http://localhost:23432
header_up Host weblate.chir.rs
transport http {
versions 1.1 2 3
}
}
'';
};
"mastodon.chir.rs" = { "mastodon.chir.rs" = {
useACMEHost = "chir.rs"; useACMEHost = "chir.rs";
logFormat = pkgs.lib.mkForce ""; logFormat = pkgs.lib.mkForce "";