Files
NomadBackup/nomad_backup/20251115_141532/nginx.json
2025-11-21 13:07:40 -08:00

292 lines
8.8 KiB
JSON

{
"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": " <p>Local Services - HTTP/HTTPS</p>\n <table style=\"width:100%\">\n <tr>\n <th>Service Name</th>\n <th>Traefik</th>\n <th>Direct</th>\n </tr>\n {{range services}}\n {{range $i, $s :=service .Name}}\n {{ if eq $i 0 }}\n\n<tr>\n <td>{{.Name}}</td>\n <td><a href=\"{{ if eq .Name \"unifi\" }}https{{else}}http{{end}}://{{.Name}}.service.dc1.consul\" target=\"_blank\">{{.Name}}.service.dc1.consul</a></td>\n <td><a href=\"{{ if eq .Name \"unifi\" }}https{{else}}http{{end}}://{{.Name}}.service.dc1.consul:{{.Port}}\" target=\"_blank\">{{ if eq .Name \"unifi\" }}https{{else}}http{{end}}://{{.Name}}.service.dc1.consul:{{.Port}}</a></td>\n </tr>\n {{end}}\n {{end}}\n {{end}}\n </table>\n <p>\n Node Environment Information: <br />\n node_id: {{ env \"node.unique.id\" }} <br/>\n datacenter: {{ env \"NOMAD_DC\" }}\n </p>\n",
"Envvars": false,
"ErrMissingKey": false,
"Gid": null,
"LeftDelim": "{{",
"Once": false,
"Perms": "0644",
"RightDelim": "}}",
"SourcePath": "",
"Splay": 5000000000,
"Uid": null,
"VaultGrace": 0,
"Wait": null
}
],
"User": "",
"Vault": null,
"VolumeMounts": null
}
],
"Update": {
"AutoPromote": false,
"AutoRevert": false,
"Canary": 0,
"HealthCheck": "checks",
"HealthyDeadline": 300000000000,
"MaxParallel": 1,
"MinHealthyTime": 10000000000,
"ProgressDeadline": 600000000000,
"Stagger": 30000000000
},
"Volumes": null
}
],
"Type": "service",
"UI": null,
"Update": {
"AutoPromote": false,
"AutoRevert": false,
"Canary": 0,
"HealthCheck": "",
"HealthyDeadline": 0,
"MaxParallel": 1,
"MinHealthyTime": 0,
"ProgressDeadline": 0,
"Stagger": 30000000000
},
"VaultNamespace": "",
"Version": 0,
"VersionTag": null
}