Giter Club home page Giter Club logo

Comments (7)

marsavela avatar marsavela commented on May 23, 2024 2

In case anyone stumbles upon this and tries to replicate the config, you have to DISABLE the HTTP to HTTPS redirection in Synology.

Had to fight a little bit with it, thinking @htpcBeginner meant that the setting needs to be enabled in THIS comment.

from docker-traefik.

pranavmishra90 avatar pranavmishra90 commented on May 23, 2024 2

In case anyone stumbles upon this and tries to replicate the config, you have to DISABLE the HTTP to HTTPS redirection in Synology.

Had to fight a little bit with it, thinking @htpcBeginner meant that the setting needs to be enabled in THIS comment.

Thanks for the suggestion, this was the issue for me. For those that are finding this thread, you have to go into the DSM control panel, and uncheck the forwarding box:

Do not forward to HTTPS

I'm using the following yaml, kept in the /rules folder as "dsm.yaml"

http:
  routers:
    synology-rtr:
      entryPoints:
        - https
      rule: Host(`dsm.example.com`)
      service: synology-svc
      middlewares:
        - chain-authelia
      tls:
        certresolver: dns-cloudflare
  services:
    synology-svc:
      loadBalancer:
        passHostHeader: true
        servers:
          - url: 'http://192.168.0.10:[http port number]'

from docker-traefik.

rondobohrens avatar rondobohrens commented on May 23, 2024 1

I solved it with the help of a friend!
As my dsm is in a different subnet, I have to route the traffic to the standardgateway of the subnet that traefik is in and the respective port. Now everything works - hope that helps some ppl with the same problem.

from docker-traefik.

htpcBeginner avatar htpcBeginner commented on May 23, 2024

I have the this and it works for me from anywhere. I even have 2FA enabled in Synology and it works.

[http.routers]
  [http.routers.synology-rtr]
      entryPoints = ["https"]
      rule = "Host(`dsm.example.com`)"
      service = "synology-svc"
      middlewares = ["chain-authelia"]
      [http.routers.synology-rtr.tls]
        certresolver = "dns-cloudflare"

[http.services]
  [http.services.synology-svc]
    [http.services.synology-svc.loadBalancer]
      passHostHeader = true
      [[http.services.synology-svc.loadBalancer.servers]]
        url = "http://LAN-IP:5000" # or whatever your external host's IP:port is

Is your Synology set to redirect to HTTPS?

Set traefik and authelia logs to info and check for any errors when you access DSM.

from docker-traefik.

rondobohrens avatar rondobohrens commented on May 23, 2024

Thanks, really appreciate it!

I set traefik logs to INFO, but it does not throw out any message when I try to connect to the DSM.
I also made sure to turn automatic rereouting to HTTPS off in my DSM.
Any other network settings I need to take care of - or any other way to debug the problem?

Thanks again

from docker-traefik.

htpcBeginner avatar htpcBeginner commented on May 23, 2024

Thank you for reporting back and closing.

from docker-traefik.

proddy avatar proddy commented on May 23, 2024

thanks for sharing!

from docker-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.