Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove old global config and use new static config #4222

Merged
merged 4 commits into from
Nov 27, 2018

Conversation

juliens
Copy link
Member

@juliens juliens commented Nov 23, 2018

What does this PR do?

Defines a new static configuration.

More

  • Added/updated tests

Additional Notes

Adds a section for the providers, like the following:

[providers]
   [providers.docker]
      #...
   [providers.file]
      #...

Global Configuration Changes

Global configuration options now belong to the new Global section

[Global]
  Debug = true
  CheckNewVersion = true
  SendAnonymousUsage = true

This avoids users being confused why the following didn't work

[file]
   # file provider configuration 
   # ...

CheckNewVersion = true # misplaced configuration option

Adds two transport sections, one to configure the transport between Traefik and the servers, and one to configure the transport between Traefik and the clients.

[ServersTransport]
  InsecureSkipVerify = true
  RootCAs = ["foobar", "foobar"]
  MaxIdleConnsPerHost = 42
  [serversTransport.ForwardingTimeouts]
    DialTimeout = 42
    ResponseHeaderTimeout = 42

[entrypoints]
  [entrypoints.xxx.transport]
    aaaa = true
  [entrypoints.xxx.transport.RespondingTimeouts]
    ReadTimeout = 42
    WriteTimeout = 42
    IdleTimeout = 42
  [entrypoints.xxx.transport.LifeCycle]
    RequestAcceptGraceTimeout = 42
    GraceTimeOut = 42

Misc

  • ProvidersThrottleDuration is moved to the providers section.
  • No more certificates configured on entrypoints other than the DefaultCertificate
  • Removes the default entrypoints option (routers that don't specify entrypoints will be connected to all of them by default)

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First review before the weekend.
Nice job folks!! 👏

cmd/configuration.go Outdated Show resolved Hide resolved
cmd/configuration.go Outdated Show resolved Hide resolved
cmd/traefik/traefik.go Outdated Show resolved Hide resolved
config/static/entrypoints.go Outdated Show resolved Hide resolved
config/static/entrypoints.go Outdated Show resolved Hide resolved
config/static/entrypoints.go Outdated Show resolved Hide resolved
config/static/entrypoints.go Outdated Show resolved Hide resolved
config/static/entrypoints.go Outdated Show resolved Hide resolved
config/static/entrypoints.go Outdated Show resolved Hide resolved
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@jbdoumenjou jbdoumenjou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@dtomcej dtomcej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
:shipit:

Copy link
Member

@mmatur mmatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

juliens and others added 4 commits November 27, 2018 17:12
Co-authored-by: Gérald Croës <gerald@containo.us>
Co-authored-by: Gérald Croës <gerald@containo.us>
@ldez ldez removed the request for review from a team November 27, 2018 16:14
@traefiker traefiker merged commit 5d91c7e into traefik:master Nov 27, 2018
@ldez ldez deleted the feature/static_configuration branch July 15, 2019 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants