VEGAS/api: drop

This commit is contained in:
Max Headroom 2024-07-15 23:13:39 +02:00
parent 81e44bf522
commit c53745df89
2 changed files with 0 additions and 41 deletions

View file

@ -1,40 +0,0 @@
{ config, lib, depot, ... }:
let
inherit (depot.lib.meta) domain;
apiAddr = "api.${domain}";
proxyTarget = config.links.api.url;
proxy = depot.lib.nginx.vhosts.proxy proxyTarget;
in
{
# n8n uses "Sustainable Use License"
nixpkgs.config.allowUnfree = true;
links.api.protocol = "http";
services.n8n = {
enable = true;
webhookUrl = "https://${apiAddr}";
settings = {
inherit (config.links.api) port;
};
};
systemd.services.n8n.environment = {
N8N_LISTEN_ADDRESS = "127.0.0.1";
N8N_ENDPOINT_WEBHOOK = "api";
N8N_ENDPOINT_WEBHOOK_TEST = "test";
};
services.nginx.virtualHosts."${apiAddr}" = lib.recursiveUpdate proxy {
locations."/api" = {
proxyPass = proxyTarget;
extraConfig = "auth_request off;";
};
locations."/test" = {
proxyPass = proxyTarget;
extraConfig = "auth_request off;";
};
};
services.oauth2-proxy.nginx.virtualHosts.${apiAddr} = { };
}

View file

@ -15,7 +15,6 @@
depot.inputs.mms.module depot.inputs.mms.module
# Services # Services
./services/api
./services/backbone-routing ./services/backbone-routing
./services/bitwarden ./services/bitwarden
./services/cdn-shield ./services/cdn-shield