diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-12-18 17:15:09 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-12-18 17:15:09 +0100 |
| commit | a65b247f94cc542bafdc68b8642bcaa176e02c9c (patch) | |
| tree | 9abcebc3af5ff5e5b967758529469cea1748b96f /modules/by-name/at | |
| parent | scripts: Consolidate in `scripts` directory and advance (diff) | |
| download | nixos-server-a65b247f94cc542bafdc68b8642bcaa176e02c9c.zip | |
modules/anubis: Introduce and setup
This should hopefully reduce the workload applied to our servers. Notably, `cgit` is not yet behind it, as it requires more, considering that it is a fgi application.
Diffstat (limited to 'modules/by-name/at')
| -rw-r--r-- | modules/by-name/at/atuin-sync/module.nix | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/modules/by-name/at/atuin-sync/module.nix b/modules/by-name/at/atuin-sync/module.nix index 0db2e29..e0d75bb 100644 --- a/modules/by-name/at/atuin-sync/module.nix +++ b/modules/by-name/at/atuin-sync/module.nix @@ -19,17 +19,9 @@ in { config = lib.mkIf cfg.enable { vhack.nginx.enable = true; - services = { - nginx.virtualHosts."${cfg.fqdn}" = { - locations."/" = { - proxyPass = "http://127.0.0.1:${toString config.services.atuin.port}"; - recommendedProxySettings = true; - }; - - enableACME = true; - forceSSL = true; - }; + vhack.anubis.instances."${cfg.fqdn}".target = "http://127.0.0.1:${toString config.services.atuin.port}"; + services = { atuin = { enable = true; package = vhackPackages.atuin-server-only; |
