refactor: config/hosts => hosts
This commit is contained in:
15
hosts/imxyy-nix-server/code.nix
Normal file
15
hosts/imxyy-nix-server/code.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
services.coder = {
|
||||
enable = true;
|
||||
accessUrl = "https://coder.imxyy.top";
|
||||
listenAddress = "127.0.0.1:8086";
|
||||
};
|
||||
users.users.coder.extraGroups = [ "podman" ];
|
||||
services.caddy.virtualHosts."coder.imxyy.top" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy :8086 {
|
||||
header_up X-Real-IP {remote_host}
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user