refactor file structure
This commit is contained in:
16
hosts/freun.dev/gtrackmap.nix
Normal file
16
hosts/freun.dev/gtrackmap.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ config, ... }:
|
||||
let
|
||||
fqdn = "trackmap.freun.dev";
|
||||
in
|
||||
{
|
||||
services.gtrackmap = {
|
||||
enable = true;
|
||||
port = 3200;
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
"${fqdn}".extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.services.gtrackmap.port}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user