{ "Affinities": null, "AllAtOnce": false, "Constraints": null, "ConsulNamespace": "", "CreateIndex": 13996170, "Datacenters": [ "dc1" ], "DispatchIdempotencyToken": "", "Dispatched": false, "ID": "nginx", "JobModifyIndex": 13996170, "Meta": null, "ModifyIndex": 13996178, "Multiregion": null, "Name": "nginx", "Namespace": "default", "NodePool": "default", "NomadTokenID": "", "ParameterizedJob": null, "ParentID": "", "Payload": null, "Periodic": null, "Priority": 50, "Region": "global", "Spreads": null, "Stable": true, "Status": "running", "StatusDescription": "", "Stop": false, "SubmitTime": 1757964378356074970, "TaskGroups": [ { "Affinities": null, "Constraints": null, "Consul": null, "Count": 1, "Disconnect": null, "EphemeralDisk": { "Migrate": false, "SizeMB": 300, "Sticky": false }, "MaxClientDisconnect": null, "Meta": null, "Migrate": { "HealthCheck": "checks", "HealthyDeadline": 300000000000, "MaxParallel": 1, "MinHealthyTime": 10000000000 }, "Name": "nginx", "Networks": [ { "DynamicPorts": [ { "HostNetwork": "default", "Label": "http", "To": 8080 } ] } ], "PreventRescheduleOnLost": false, "ReschedulePolicy": { "Attempts": 0, "Delay": 30000000000, "DelayFunction": "exponential", "Interval": 0, "MaxDelay": 3600000000000, "Unlimited": true }, "RestartPolicy": { "Attempts": 2, "Delay": 15000000000, "Interval": 1800000000000, "Mode": "fail", "RenderTemplates": false }, "Scaling": null, "Services": null, "ShutdownDelay": null, "Spreads": null, "StopAfterClientDisconnect": null, "Tasks": [ { "Actions": null, "Affinities": null, "Artifacts": null, "CSIPluginConfig": null, "Config": { "volumes": [ "custom/default.conf:/etc/nginx/conf.d/default.conf" ], "image": "nginx", "ports": [ "http" ] }, "Constraints": [ { "LTarget": "${attr.consul.version}", "Operand": "semver", "RTarget": ">= 1.8.0" } ], "Consul": null, "DispatchPayload": null, "Driver": "docker", "Env": null, "Identities": null, "Identity": { "Audience": [ "nomadproject.io" ], "ChangeMode": "", "ChangeSignal": "", "Env": false, "File": false, "Filepath": "", "Name": "default", "ServiceName": "", "TTL": 0 }, "KillSignal": "", "KillTimeout": 5000000000, "Kind": "", "Leader": false, "Lifecycle": null, "LogConfig": { "Disabled": false, "MaxFileSizeMB": 10, "MaxFiles": 10 }, "Meta": null, "Name": "nginx", "Resources": { "CPU": 100, "Cores": 0, "Devices": null, "DiskMB": 0, "IOPS": 0, "MemoryMB": 64, "MemoryMaxMB": 0, "NUMA": null, "Networks": null, "SecretsMB": 0 }, "RestartPolicy": { "Attempts": 2, "Delay": 15000000000, "Interval": 1800000000000, "Mode": "fail", "RenderTemplates": false }, "ScalingPolicies": null, "Schedule": null, "Services": [ { "Address": "", "AddressMode": "auto", "CanaryMeta": null, "CanaryTags": null, "Checks": [ { "AddressMode": "", "Args": null, "Body": "", "CheckRestart": null, "Command": "", "Expose": false, "FailuresBeforeCritical": 0, "FailuresBeforeWarning": 0, "GRPCService": "", "GRPCUseTLS": false, "Header": null, "InitialStatus": "", "Interval": 10000000000, "Method": "", "Name": "service: \"nginx\" check", "Notes": "", "OnUpdate": "require_healthy", "Path": "", "PortLabel": "", "Protocol": "", "SuccessBeforePassing": 0, "TLSServerName": "", "TLSSkipVerify": false, "TaskName": "nginx", "Timeout": 2000000000, "Type": "tcp" } ], "Cluster": "default", "Connect": null, "EnableTagOverride": false, "Identity": null, "Meta": null, "Name": "nginx", "Namespace": "default", "OnUpdate": "require_healthy", "PortLabel": "http", "Provider": "consul", "TaggedAddresses": null, "Tags": [ "nginx", "web", "urlprefix-/nginx", "backend" ], "TaskName": "nginx", "Weights": null } ], "ShutdownDelay": 0, "Templates": [ { "ChangeMode": "restart", "ChangeScript": null, "ChangeSignal": "", "DestPath": "custom/default.conf", "EmbeddedTmpl": " server {\n listen 8080;\n server_name nginx.service.dc1.consul;\n location / {\n root /local/data;\n }\n }\n", "Envvars": false, "ErrMissingKey": false, "Gid": null, "LeftDelim": "{{", "Once": false, "Perms": "0644", "RightDelim": "}}", "SourcePath": "", "Splay": 5000000000, "Uid": null, "VaultGrace": 0, "Wait": null }, { "ChangeMode": "noop", "ChangeScript": null, "ChangeSignal": "", "DestPath": "local/data/index.html", "EmbeddedTmpl": "
Local Services - HTTP/HTTPS
\n| Service Name | \nTraefik | \nDirect | \n
|---|---|---|
| {{.Name}} | \n{{.Name}}.service.dc1.consul | \n{{ if eq .Name \"unifi\" }}https{{else}}http{{end}}://{{.Name}}.service.dc1.consul:{{.Port}} | \n
\n Node Environment Information:
\n node_id: {{ env \"node.unique.id\" }}
\n datacenter: {{ env \"NOMAD_DC\" }}\n