2022-04-15 13:44:08 +00:00
---
title: "Traefik HTTP Documentation"
description: "Provide your dynamic configuration via an HTTP(S) endpoint and let Traefik Proxy do the rest. Read the technical documentation."
---
2020-07-15 14:56:03 +00:00
# Traefik & HTTP
2021-02-11 18:04:03 +00:00
Provide your [dynamic configuration ](./overview.md ) via an HTTP(S) endpoint and let Traefik do the rest!
2020-07-15 14:56:03 +00:00
## Routing Configuration
The HTTP provider uses the same configuration as the [File Provider ](./file.md ) in YAML or JSON format.
## Provider Configuration
### `endpoint`
_Required_
2021-02-11 18:04:03 +00:00
Defines the HTTP(S) endpoint to poll.
2020-07-15 14:56:03 +00:00
```yaml tab="File (YAML)"
providers:
http:
2022-01-19 18:50:05 +00:00
endpoint: "http://127.0.0.1:9000/api"
2020-07-15 14:56:03 +00:00
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http]
endpoint = "http://127.0.0.1:9000/api"
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.endpoint=http://127.0.0.1:9000/api
```
### `pollInterval`
_Optional, Default="5s"_
Defines the polling interval.
```yaml tab="File (YAML)"
providers:
http:
pollInterval: "5s"
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http]
pollInterval = "5s"
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.pollInterval=5s
```
### `pollTimeout`
_Optional, Default="5s"_
2021-12-02 14:42:06 +00:00
Defines the polling timeout when connecting to the endpoint.
2020-07-15 14:56:03 +00:00
```yaml tab="File (YAML)"
providers:
http:
pollTimeout: "5s"
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http]
pollTimeout = "5s"
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.pollTimeout=5s
```
### `tls`
_Optional_
2021-12-02 14:42:06 +00:00
Defines the TLS configuration used for the secure connection to the endpoint.
2020-07-15 14:56:03 +00:00
2021-12-02 14:42:06 +00:00
#### `ca`
_Optional_
`ca` is the path to the certificate authority used for the secure connection to the endpoint,
it defaults to the system bundle.
2020-07-15 14:56:03 +00:00
```yaml tab="File (YAML)"
providers:
http:
tls:
ca: path/to/ca.crt
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http.tls]
ca = "path/to/ca.crt"
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.tls.ca=path/to/ca.crt
```
2021-12-02 14:42:06 +00:00
#### `cert`
2020-07-15 14:56:03 +00:00
2021-12-02 14:42:06 +00:00
_Optional_
`cert` is the path to the public certificate used for the secure connection to the endpoint.
When using this option, setting the `key` option is required.
2020-07-15 14:56:03 +00:00
```yaml tab="File (YAML)"
providers:
http:
tls:
cert: path/to/foo.cert
key: path/to/foo.key
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http.tls]
cert = "path/to/foo.cert"
key = "path/to/foo.key"
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.tls.cert=path/to/foo.cert
--providers.http.tls.key=path/to/foo.key
```
2021-12-02 14:42:06 +00:00
#### `key`
2020-07-15 14:56:03 +00:00
2021-12-02 14:42:06 +00:00
_Optional_
`key` is the path to the private key used for the secure connection to the endpoint.
When using this option, setting the `cert` option is required.
2020-07-15 14:56:03 +00:00
```yaml tab="File (YAML)"
providers:
http:
tls:
cert: path/to/foo.cert
key: path/to/foo.key
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http.tls]
cert = "path/to/foo.cert"
key = "path/to/foo.key"
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.tls.cert=path/to/foo.cert
--providers.http.tls.key=path/to/foo.key
```
2021-12-02 14:42:06 +00:00
#### `insecureSkipVerify`
_Optional, Default=false_
2020-07-15 14:56:03 +00:00
2021-02-11 18:04:03 +00:00
If `insecureSkipVerify` is `true` , the TLS connection to the endpoint accepts any certificate presented by the server regardless of the hostnames it covers.
2020-07-15 14:56:03 +00:00
```yaml tab="File (YAML)"
providers:
http:
tls:
insecureSkipVerify: true
```
2021-06-18 22:08:08 +00:00
```toml tab="File (TOML)"
[providers.http.tls]
insecureSkipVerify = true
```
2020-07-15 14:56:03 +00:00
```bash tab="CLI"
--providers.http.tls.insecureSkipVerify=true
```