2021-11-24 16:20:02 +00:00
|
|
|
---
|
|
|
|
layout: docs
|
2023-01-30 14:48:43 +00:00
|
|
|
page_title: ui Block - Agent Configuration
|
2021-11-24 16:20:02 +00:00
|
|
|
description: |-
|
2023-01-30 14:48:43 +00:00
|
|
|
The "ui" block configures the Nomad agent's web UI.
|
2021-11-24 16:20:02 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2023-01-30 14:48:43 +00:00
|
|
|
# `ui` Block
|
2021-11-24 16:20:02 +00:00
|
|
|
|
|
|
|
<Placement groups={['ui']} />
|
|
|
|
|
2023-01-30 14:48:43 +00:00
|
|
|
The `ui` block configures the Nomad agent's [web UI].
|
2021-11-24 16:20:02 +00:00
|
|
|
|
|
|
|
```hcl
|
|
|
|
ui {
|
|
|
|
enabled = true
|
|
|
|
|
|
|
|
consul {
|
2021-11-30 18:20:29 +00:00
|
|
|
ui_url = "https://consul.example.com:8500/ui"
|
2021-11-24 16:20:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
vault {
|
2021-11-30 18:20:29 +00:00
|
|
|
ui_url = "https://vault.example.com:8200/ui"
|
2021-11-24 16:20:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2023-01-30 14:48:43 +00:00
|
|
|
A default `ui` block is automatically merged with all Nomad agent
|
2021-11-24 16:20:02 +00:00
|
|
|
configurations. Note that the UI can be served from any Nomad agent,
|
|
|
|
and the configuration is individual to each agent.
|
|
|
|
## `ui` Parameters
|
|
|
|
- `enabled` `(bool: true)` - Specifies whether the web UI is
|
|
|
|
enabled. If disabled, the `/ui/` path will return an empty web page.
|
|
|
|
|
|
|
|
- `consul` <code>([Consul]: nil)</code> - Configures integrations
|
|
|
|
between the Nomad web UI and the Consul web UI.
|
|
|
|
|
|
|
|
- `vault` <code>([Vault]: nil)</code> - Configures integrations
|
|
|
|
between the Nomad web UI and the Vault web UI.
|
|
|
|
|
|
|
|
## `consul` Parameters
|
|
|
|
|
2021-11-30 18:20:29 +00:00
|
|
|
- `ui_url` `(string: "")` - Specifies the full base URL to a Consul
|
2021-11-24 16:20:02 +00:00
|
|
|
web UI (for example: `https://consul.example.com:8500/ui`. This URL
|
|
|
|
is used to build links from the Nomad web UI to a Consul web
|
|
|
|
UI. Note that this URL will not typically be the same one used for
|
|
|
|
the agent's [`consul.address`]; the `consul.address` is the URL used
|
|
|
|
by the Nomad to communicate with Consul, whereas the
|
2021-11-30 18:20:29 +00:00
|
|
|
`ui.consul.ui_url` is the URL you'll visit in your browser. If
|
2021-11-24 16:20:02 +00:00
|
|
|
this field is omitted, this integration will be disabled.
|
|
|
|
|
|
|
|
## `vault` Parameters
|
|
|
|
|
2021-11-30 18:20:29 +00:00
|
|
|
- `ui_url` `(string: "")` - Specifies the full base URL to a Vault
|
2021-11-24 16:20:02 +00:00
|
|
|
web UI (for example: `https://vault.example.com:8200/ui`. This URL
|
|
|
|
is used to build links from the Nomad web UI to a Vault web
|
|
|
|
UI. Note that this URL will not typically be the same one used for
|
|
|
|
the agent's [`vault.address`]; the `vault.address` is the URL used
|
|
|
|
by the Nomad to communicate with Vault, whereas the
|
2021-11-30 18:20:29 +00:00
|
|
|
`ui.vault.ui_url` is the URL you'll visit in your browser. If
|
2021-11-24 16:20:02 +00:00
|
|
|
this field is omitted, this integration will be disabled.
|
|
|
|
|
|
|
|
|
2023-01-25 17:31:14 +00:00
|
|
|
[web UI]: /nomad/tutorials/web-ui
|
|
|
|
[Consul]: /nomad/docs/configuration/ui#consul-parameters
|
|
|
|
[Vault]: /nomad/docs/configuration/ui#vault-parameters
|
|
|
|
[`consul.address`]: /nomad/docs/configuration/consul#address
|
|
|
|
[`vault.address`]: /nomad/docs/configuration/vault#address
|