Files
hearth/nixos/system/hectic-lab/worldofsosal-map.nix
T
2026-11-18 09:01:26 +00:00

40 lines
1.3 KiB
Nix

{ pkgs, ... }:
{
systemd.services.worldofsosal-bluemap-proxy = {
description = "Private BlueMap HTTP transport from neuro";
wantedBy = [ "multi-user.target" ];
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
serviceConfig = {
User = "root";
ExecStart = "${pkgs.openssh}/bin/ssh -NT -o BatchMode=yes -o IdentityAgent=none -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o ExitOnForwardFailure=yes -o ConnectTimeout=10 -o ServerAliveInterval=15 -o ServerAliveCountMax=3 -L 127.0.0.1:18100:127.0.0.1:8100 neuro";
Restart = "always";
RestartSec = 10;
NoNewPrivileges = true;
ProtectSystem = "strict";
ProtectHome = "read-only";
PrivateTmp = true;
CapabilityBoundingSet = "";
};
};
services.nginx.virtualHosts."store.hectic-lab.com".locations = {
"= /wowmine/map" = {
extraConfig = "return 302 /wowmine/map/;";
};
"^~ /wowmine/map/" = {
proxyPass = "http://127.0.0.1:18100/";
extraConfig = ''
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Connection "";
proxy_buffering off;
proxy_read_timeout 3600s;
limit_except GET {
deny all;
}
'';
};
};
}