Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traefik 2.0 dropping Content-Type headers #6092

Closed
derekslenk opened this issue Dec 26, 2019 · 1 comment
Closed

Traefik 2.0 dropping Content-Type headers #6092

derekslenk opened this issue Dec 26, 2019 · 1 comment
Assignees
Milestone

Comments

@derekslenk
Copy link

derekslenk commented Dec 26, 2019

Do you want to request a feature or report a bug?

Bug

What did you do?

I set up the docker image referenced: https://github.com/sissbruecker/linkding

I added labels to expose it to the HTTPS entrypoint with proper domain, etc.

Navigate to site behind traefik and see console error that the stylesheet is being server wrong.

Open dev tools, run it again, and see the stylesheet is being returned text/plain

What did you expect to see?

I expected to see the stylesheet being returned as text/css, like it does when I navigate to the direct IP of the docker container.

What did you see instead?

I saw the stylesheet returned as text/plain, which will not load as valid CSS over HTTPS

Output of traefik version: (What version of Traefik are you using?)

Version:      2.0.7
Codename:     montdor
Go version:   go1.13.5
Built:        2019-12-09T17:51:21Z
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?

providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
    network: slenknet_default

entryPoints:
  websecure:
    address: ":443"
  metrics:
    address: ":9990"

http:
  middlewares:
    slenk-auth:
      basicAuth:
        users:
          - "######################"

certificatesResolvers:
  mytlschallenge:
    acme:
      email: my@email.com
      storage: "/letsencrypt/acme.json"
      tlsChallenge: {}

api:
  insecure: true
  dashboard: true
  debug: true

metrics:
  prometheus: 
    addEntryPointsLabels: true
    addServicesLabels: true
    entryPoint: metrics

accessLog: {}
        - "traefik.enable=true"
        - "traefik.http.routers.linkding.rule=Host(`linkding.######.###`)"
        - "traefik.http.routers.linkding.tls=true"
        - "traefik.http.routers.linkding.entrypoints=websecure"
        - "traefik.http.routers.linkding.tls.certresolver=mytlschallenge"
        - "traefik.http.services.linkding.loadbalancer.server.port=9090"

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)

(paste your output here)
@traefiker
Copy link
Contributor

Closed by #6097.

@traefik traefik locked and limited conversation to collaborators Feb 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants