Comments (7)
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.
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:
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.
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.
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.
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.
Thank you for reporting back and closing.
from docker-traefik.
thanks for sharing!
from docker-traefik.
Related Issues (20)
- READ BEFORE OPENING ISSUES
- env in rule.yml HOT 1
- Jellyfin image does not respect PUID and PGID
- CLOUDFLARE_EMAIL variable from .env file used instead of secrets cf_email HOT 2
- no configuration file provided: not found HOT 1
- Mismatching values on chain-basic-auth HOT 1
- Synology DSM 7 - fails to free port 80 HOT 1
- middlewares.yml - (<unknown>): did not find expected key while parsing a block mapping at line 22 column 9 HOT 1
- Wrong folder in 'touch' description HOT 2
- 404 on all pages HOT 3
- possible working metube config for traefik on portainer HOT 1
- Traefik Plugins HOT 1
- SSL handshake failed for my entire setup after following Crowdsec guide
- Secrets can't be loaded HOT 1
- Traefik accesslog filters and crowdsec
- queue not loaded after docker container restart HOT 1
- synology wordpress setup error
- Heimdall + Traefik: error fetching default icon while creating new site
- ERROR: for traefik user specified IP address is supported only when connecting to networks with user configured subnets.
- Shared Extension Fields between include files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-traefik.