Giter Site home page Giter Site logo

Environment Variables about traefik HOT 3 CLOSED

Ramalama2 avatar Ramalama2 commented on June 23, 2024
Environment Variables

from traefik.

Comments (3)

ldez avatar ldez commented on June 23, 2024 1

Hello,

There are three different, mutually exclusive (i.e. you can use only one at the same time), ways to define static configuration options in Traefik

https://doc.traefik.io/traefik/getting-started/configuration-overview/#the-static-configuration

So you cannot use a file and env vars simultaneously.

from traefik.

Ramalama2 avatar Ramalama2 commented on June 23, 2024

Its much easier without the Bugreport-Form, to tell what the issue is.

The documentation lacks a bit about the Environment Variables either, like how to add multiple dns resolver servers.
But anyway, to my eyes it looks like the environment config gets completely ignored.

TRAEFIK_CERTIFICATESRESOLVERS_default-storage=true
TRAEFIK_CERTIFICATESRESOLVERS_default-storage_ACME_DNSCHALLENGE=true
TRAEFIK_CERTIFICATESRESOLVERS_default-storage_ACME_DNSCHALLENGE_DELAYBEFORECHECK=10
TRAEFIK_CERTIFICATESRESOLVERS_default-storage_ACME_DNSCHALLENGE_PROVIDER=ovh
TRAEFIK_CERTIFICATESRESOLVERS_default-storage_ACME_DNSCHALLENGE_RESOLVERS=ns12.ovh.net
TRAEFIK_CERTIFICATESRESOLVERS_default-storage_ACME_EMAIL="[email protected]"

-->
ERR Router uses a non-existent certificate resolver certificateResolver=default-storage routerName=api@file

So the workaround: simply configure that resolver via toml, but why the document page lists that there are environment variables for that?

Thanks everyone, great work with Traefik :-)

from traefik.

Ramalama2 avatar Ramalama2 commented on June 23, 2024

Hello,

There are three different, mutually exclusive (i.e. you can use only one at the same time), ways to define static configuration options in Traefik

https://doc.traefik.io/traefik/getting-started/configuration-overview/#the-static-configuration

So you cannot use a file and env vars simultaneously.

Thank you a lot, sorry for the stupid bugreport!

from traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.