Coming soon - Get a detailed view of why an account is flagged as spam!
view details
2
400 Bad request
Author Summary
CrushedEye is age 40
Post Body

I'm having real problems with getting Traefik working with Docker and letsencrypt.

no matter what i do, i seem to get a "400 Bad request - The plain HTTP request was sent to HTTPS port"

I've posted my config below, but i'd love to know if anyone can spot anything.

docker-compose.yml;

version: '3'

services:
traefik:
image: traefik:1.7 # The official Traefik docker image
command:
- "--debug=true"
- "--api"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--acme"
- "--acme.storage=/acme.json"
- "--acme.entryPoint=https"
- "--acme.httpChallenge.entryPoint=http"
- "--acme.onHostRule=true"
- "--acme.onDemand=false"
- "[email protected]"
- "--docker"
- "--docker.swarmMode"
- "--docker.domain=mydomainname.com"
- "--docker.watch"
ports:
- "80:80"     # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
- "443:443"
networks:
- reverse-proxy-overlay
deploy:
replicas: 3
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
labels:
- "traefik.enable=false"
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
- /docker/traefik/acme.json:/acme.json:rw

pydio:
image: linuxserver/pydio:latest
networks:
- reverse-proxy-overlay
deploy:
replicas: 3
restart_policy:
condition: on-failure
placement:
constraints: [node.role == manager]
labels:
- "traefik.backend=pydio"
- "traefik.docker.network=reverse-proxy-overlay"
- "traefik.enable=true"
- "traefik.frontend.endpoints=https"
- "traefik.frontend.rule=Host:pydio.mydomainname.com"
- "traefik.port=443"
- "traefik.frontend.headers.SSLRedirect=true"
volumes:
- /docker/pydio/config:/config
- /docker/pydio/data:/data
- /etc/localtime:/etc/localtime:ro

networks:
reverse-proxy-overlay:
external: true

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,723
Link Karma
2,850
Comment Karma
2,814
Profile updated: 3 months ago
Posts updated: 8 months ago

Subreddit

Post Details

Age
40
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 years ago