add bluemap reverse proxy for tle
This commit is contained in:
parent
7a42b92bd9
commit
6c537bb664
1 changed files with 12 additions and 1 deletions
|
@ -4,6 +4,8 @@ let
|
||||||
puffer_port = 8080;
|
puffer_port = 8080;
|
||||||
puffer_sftp_port = 5657;
|
puffer_sftp_port = 5657;
|
||||||
puffer_host = "puffer.${root_host}";
|
puffer_host = "puffer.${root_host}";
|
||||||
|
tlemap_host = "tlemap.${root_host}";
|
||||||
|
tlemap_port = 8100;
|
||||||
in {
|
in {
|
||||||
services.pufferpanel = {
|
services.pufferpanel = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -25,8 +27,17 @@ in {
|
||||||
proxyPass = "http://127.0.0.1:${builtins.toString puffer_port}";
|
proxyPass = "http://127.0.0.1:${builtins.toString puffer_port}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
virtualHosts."${tlemap_host}" = {
|
||||||
|
serverName = tlemap_host;
|
||||||
|
forceSSL = true;
|
||||||
|
useACMEHost = root_host;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${builtins.toString tlemap_port}";
|
||||||
};
|
};
|
||||||
security.acme.certs."${root_host}".extraDomainNames = [ puffer_host ];
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
security.acme.certs."${root_host}".extraDomainNames = [ puffer_host tlemap_host ];
|
||||||
networking.firewall.allowedTCPPorts = [ puffer_sftp_port 25565 25566 25567 25568];
|
networking.firewall.allowedTCPPorts = [ puffer_sftp_port 25565 25566 25567 25568];
|
||||||
|
|
||||||
# virtualisation.podman.enable = true;
|
# virtualisation.podman.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue