Giter Site home page Giter Site logo

traefik's Introduction

Set up

  1. create cloudflare account
  2. pay for cloudflar domain (e.g. sub-box.net)
  3. Set up dns as shown in screen shot (separate subdomain for each docker service)
  4. ensure CF is set to full encryption mode
  5. set up port forwarding from router to local machine (HTTP, HTTPS, 8080)
  6. use docker-compose attached
  7. edit docker-compose with your CF email and global API token
  8. services accessible from internet at: i. slskd.sub-box.net ii. navidrome.sub-box.net iii. sub-box.net (dashboard) 9.accessible locally: i. https://localhost/slskd ii. https://localhost/navidrome iii. http://localhost:8080/dashboard/#/http/routers

Troubleshooting

Browser throws ERR_TOO_MANY_REDIRECTS when accessing a service: If you deployed using CloudFlare's DNS servers and set CF to 'Flexible mode' then you will incurr in this error. This is because you have https from the client to the CF proxy, and forced http between the CF proxy and the server (forced by CF). As Traefik was configured with an http-to-https redirection itself, this will cause an infinite loop of redirects. In order to solve this issue, you need to set CF to Full encryption mode, and even without LE (using Traefik's self signed certificate) your website/application is now accessible.

Browser throws ERR_SSL_VERSION_OR_CIPHER_MISMATCH when accessing a service: I ran into this error because the "edge certificates" (the certificates sitting at CloudFlare's proxy) did not have the same coverage for the routes I was setting up with Traefik.
    I was setting up routes with the structure service.platform.your-domain.com. This is called a 4th level subdomain.
    The "edge" certificates provided by CloudFlare (the "edge" being CF's proxy) only provide SSL up to 3rd level subdomains, specifically, to your-domain.com and *.your-domain.com.
    Thus the LE certificates fetch by Traefik did not match the names "made available" by CloudFlare, and the error above was produced.
    The only solution is to upgrade to a Enterprise subscription to CloudFlare ๐Ÿ’ธ, as this allows you to issue edge certificates for any level of subdomains you want.

traefik's People

Contributors

laker-93 avatar

Watchers

 avatar

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.