test-vm: Serve whib-frontend with nginx
The WHIB frontend module no longer runs a container or has a `port` option. Forward host port 8081 to nginx in the VM instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f638b7d331
commit
ac62a8e4d3
1 file changed
+6
-4
@@ -13,20 +13,22 @@ in
|
|||||||
services.whib-frontend = {
|
services.whib-frontend = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
domain = "whib-frontend.local";
|
# nginx serves the frontend; matches the Host header of http://localhost:8081
|
||||||
port = "8081";
|
domain = "localhost";
|
||||||
# backendHost = "https://api.whib.ppp.pm/";
|
# backendHost = "https://api.whib.ppp.pm/";
|
||||||
backendHost = "http://localhost:8080";
|
backendHost = "http://localhost:8080";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
|
||||||
virtualisation.vmVariant = {
|
virtualisation.vmVariant = {
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
{
|
{
|
||||||
# Service API
|
# Frontend served by nginx
|
||||||
from = "host";
|
from = "host";
|
||||||
host.port = 8081;
|
host.port = 8081;
|
||||||
guest.port = 8081;
|
guest.port = 80;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user