feat: wowmine: map
This commit is contained in:
@@ -69,6 +69,7 @@ in {
|
||||
(import ./containers.nix { inherit flake self inputs; })
|
||||
./experimental-sshd.nix
|
||||
./minecraft-wow-proxy.nix
|
||||
./worldofsosal-map.nix
|
||||
(import ./ente.nix { inherit domain; })
|
||||
(import ./immich.nix { inherit domain inputs; })
|
||||
(import ./mechabellum.nix { inherit flake self inputs domain; })
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
</a>
|
||||
<nav class="main-nav" aria-label="Основная навигация">
|
||||
<a class="nav-world" href="#world">Мир сервера</a>
|
||||
<a class="nav-world" href="/wowmine/map/#azeroth:3742:80:8891:220:0.7:0.9:0:0:perspective">3D-карта</a>
|
||||
<a href="#start">Как начать</a>
|
||||
<a class="nav-help" href="#help">Вопросы</a>
|
||||
</nav>
|
||||
@@ -62,6 +63,7 @@
|
||||
Скачать сборку
|
||||
</a>
|
||||
<a class="hero-guide" href="#start">Как установить <svg class="icon" aria-hidden="true"><use href="#arrow"/></svg></a>
|
||||
<a class="hero-guide" href="/wowmine/map/#azeroth:3742:80:8891:220:0.7:0.9:0:0:perspective"><svg class="icon" aria-hidden="true"><use href="#map"/></svg> 3D-карта</a>
|
||||
</div>
|
||||
<p class="hero-note">Для Prism Launcher · с автообновлениями</p>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{ 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;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user