merge
This commit is contained in:
parent
f52e433423
commit
c7c261332e
3 changed files with 71 additions and 71 deletions
54
containers/hello.nix
Normal file → Executable file
54
containers/hello.nix
Normal file → Executable file
|
|
@ -1,27 +1,27 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
containers.hello = {
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.11";
|
||||
|
||||
config = { config, pkgs, ... }: {
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."localhost" = {
|
||||
# Return a 200 OK directly from nginx
|
||||
locations."/".return = "200 'Hello world!'";
|
||||
locations."/".extraConfig = ''
|
||||
default_type text/plain;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
containers.hello = {
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.11";
|
||||
|
||||
config = { config, pkgs, ... }: {
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts."localhost" = {
|
||||
# Return a 200 OK directly from nginx
|
||||
locations."/".return = "200 'Hello world!'";
|
||||
locations."/".extraConfig = ''
|
||||
default_type text/plain;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue