added minecraft server. Backup solution is a bit ugly ATM.
This commit is contained in:
parent
39bee826c3
commit
49f588bb81
8 changed files with 92 additions and 9 deletions
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
port = "8080";
|
||||
in {
|
||||
systemd.services.miniserve = {
|
||||
wantedBy = ["multi-user.target"];
|
||||
after = ["network.target"];
|
||||
description = "A directory listing miniserve instance";
|
||||
serviceConfig = {
|
||||
ExecStart = lib.concatStringsSep " " [
|
||||
"${pkgs.miniserve}/bin/miniserve"
|
||||
"--enable-tar-gz"
|
||||
"--show-wget-footer"
|
||||
"--readme"
|
||||
"--port ${port}"
|
||||
"--qrcode"
|
||||
# "--no-symlinks"
|
||||
"--interfaces 127.0.0.1"
|
||||
"/storage/miniserve"
|
||||
];
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts."static.venberg.xyz" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:${port}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue