forgejo works now but vaultwarden is fucky

This commit is contained in:
KoenDR06 2025-12-29 01:45:04 +01:00
parent f1b3559434
commit 02eb92a443
5 changed files with 140 additions and 15 deletions

View file

@ -8,6 +8,7 @@
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.containers.nginx;
osConfig = config;
in {
options = {
horseman.containers.nginx = {
@ -16,7 +17,7 @@ in {
};
config = mkIf cfg.enable {
networking.extraHosts = "192.168.100.1 koendev.nl *.koendev.nl";
networking.extraHosts = "192.168.100.1 koendevLocal.nl git.koendevLocal.nl vault.koendevLocal.nl";
containers.nginx = {
autoStart = true;
@ -41,15 +42,19 @@ in {
enable = true;
virtualHosts = {
"koendev.nl" = {
"koendevLocal.nl" = {
# addSSL = false;
# enableACME = false;
root = "/var/www/portfolio";
default = true;
extraConfig = ''
error_page 404 /404.html;
'';
};
"vault.koendev.nl" = {
"git.koendevLocal.nl" = {
locations."/" = {
proxyPass = "http://172.16.0.2";
proxyPass = "http://${osConfig.containers.forgejo.localAddress}:${toString osConfig.horseman.containers.forgejo.port}";
};
};
};