-
Notifications
You must be signed in to change notification settings - Fork 9
static port is not working #6
Copy link
Copy link
Open
Description
it looks like to port works but not the static port
it just ignores it and uses a dynamic one
{ time, ... }:
let
http = {
port.http = {
static = 80;
to = 8080;
};
};
in {
job.nginx = {
datacenters = [ "dc1" ];
group.servers = {
networks = [ http ];
task.server = {
driver = "podman";
config = {
image = "nginxinc/nginx-unprivileged:alpine";
ports = [ "http" ];
};
resources = {
cpu = 10;
memory = 50;
};
services = [{
name = "nginx-server";
port = "http";
tags = [ "pi" "nginx-test-server" ];
checks = with time; [{
type = "http";
path = "/index.html";
interval = 2 * second;
timeout = 2 * second;
}];
}];
};
};
};
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels