Adding the HTTPS redirection to file Traefik.yml, right ?
My Emby and Plex still can't be connected.
Adding the HTTPS redirection to file Traefik.yml, right ?
My Emby and Plex still can't be connected.
yes the https redirection goes in your traefik.yml, but i didn't expect it to fix all our problems.
- did you remove the "metrics" section in your traefik.yml to reduce the error potential. (let's get a bare bones setup running)
- did you increase your traefik log level to DEBUG, if so post a log file.
Yes, I did.
https://medium.com/@containero…vanced-guide-d098b9e9be96
The author of this guide instructed to use the router "secured@file", but it didn't work when I use it.
It showing 'Forbidden' web page. As the result, I have to use - "https-redirect@file"
https://medium.com/@containero…ough-traefik-7bf2d56b1057
logs:
76.242.49.154 - - [28/Mar/2020:21:48:42 +0000] "GET / HTTP/1.1" 301 17 "-" "-" 412 "http-to-https@internal" "-" 2ms,
76.242.49.154 - tx7 [28/Mar/2020:21:57:30 +0000] "GET /dashboard/service-worker.js HTTP/2.0" 200 986 "-" "-" 429 "traefik-https@docker" "-" 3ms,
76.242.49.154 - - [28/Mar/2020:21:48:42 +0000] "GET / HTTP/2.0" 502 11 "-" "-" 413 "emby@file" "http://192.168.1.97:8920" 2ms,
76.242.49.154 - - [28/Mar/2020:21:48:57 +0000] "GET / HTTP/1.1" 301 17 "-" "-" 414 "http-to-https@internal" "-" 0ms,
76.242.49.154 - - [28/Mar/2020:21:48:57 +0000] "GET / HTTP/2.0" 502 11 "-" "-" 415 "plex@file" "http://192.168.1.97:32400" 0ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:36 +0000] "GET / HTTP/2.0" 302 34 "-" "-" 417 "traefik-https@docker" "-" 5ms,
139.162.113.204 - - [28/Mar/2020:21:54:46 +0000] "GET / HTTP/1.1" 404 19 "-" "-" 416 "-" "-" 0ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:36 +0000] "GET /api/overview HTTP/2.0" 200 445 "-" "-" 420 "traefik-https@docker" "-" 7ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:54 +0000] "GET /api/overview HTTP/2.0" 200 445 "-" "-" 428 "traefik-https@docker" "-" 4ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:54 +0000] "GET /api/entrypoints HTTP/2.0" 200 432 "-" "-" 427 "traefik-https@docker" "-" 6ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:51 +0000] "GET /api/http/routers?search=&status=&per_page=10&page=1 HTTP/2.0" 200 2077 "-" "-" 426 "traefik-https@docker" "-" 8ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:49 +0000] "GET /api/http/routers?search=&status=&per_page=10&page=2 HTTP/2.0" 200 1408 "-" "-" 425 "traefik-https@docker" "-" 9ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:44 +0000] "GET /api/http/routers?search=&status=&per_page=10&page=1 HTTP/2.0" 200 2077 "-" "-" 424 "traefik-https@docker" "-" 2ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:44 +0000] "GET /api/overview HTTP/2.0" 200 445 "-" "-" 423 "traefik-https@docker" "-" 3ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:41 +0000] "GET /api/overview HTTP/2.0" 200 445 "-" "-" 422 "traefik-https@docker" "-" 4ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:38 +0000] "GET /dashboard/service-worker.js HTTP/2.0" 200 986 "-" "-" 421 "traefik-https@docker" "-" 12ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:36 +0000] "GET /api/version HTTP/2.0" 200 42 "-" "-" 418 "traefik-https@docker" "-" 12ms,
76.242.49.154 - tx7 [28/Mar/2020:21:56:36 +0000] "GET /api/entrypoints HTTP/2.0" 200 432 "-" "-" 419 "traefik-https@docker" "-" 8ms
Alles anzeigen
After a week of hard work, I finally have Traefik running, but there is issue with Nextcloud.
Emby https redirection is perfect, but Plex isn't.
For external services like Plex, Emby, this is my config:
http:
routers:
plex:
entryPoints:
- "https"
rule: Host(`plex.abcd.com`)
middlewares:
- default-headers
- addprefix-plex
tls:
certResolver: "le"
service: plex
emby:
entryPoints:
- "https"
rule: Host(`emby.abcd.com`)
middlewares:
- default-headers
tls:
certResolver: "le"
service: emby
services:
plex:
loadBalancer:
servers:
- url: "http://192.168.1.97:32400"
passHostHeader: true
emby:
loadBalancer:
servers:
- url: "http://192.168.1.97:8096"
passHostHeader: true
middlewares:
addprefix-plex:
addPrefix:
prefix: "/web"
https-redirect:
redirectScheme:
scheme: https
default-headers:
headers:
frameDeny: true
sslRedirect: true
browserXssFilter: true
contentTypeNosniff: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsPreload: true
stsSeconds: 31536000
default-whitelist:
ipWhiteList:
sourceRange:
- "10.0.0.0/24"
- "192.168.0.0/16"
- "172.0.0.0/8"
secured:
chain:
middlewares:
- default-whitelist
- default-headers
Alles anzeigen
I found this video after I've done the setup: https://www.youtube.com/watch?v=N5EmluXSbEg
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!