# Please help, I am loosing my mind over ssl

**URL:** https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215
**Category:** Traefik v1
**Tags:** docker
**Created:** [August 14, 2019, 11:54am UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215 "2019-08-14T11:54:52Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![daniel.tomcej](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/daniel.tomcej/32/262_2.png) [@daniel.tomcej](https://community.traefik.io/u/daniel.tomcej)
#### Post date: [August 14, 2019, 7:56pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/21 "2019-08-14T19:56:52Z")

</div>

Note that a wildcard certificate:

`*.grillgeek.se`

does **NOT** match

`traefik.docker.grillgeek.se` 😉

---

<div class="post-metadata">

### Author: ![macmattias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macmattias/32/102_2.png) [@macmattias](https://community.traefik.io/u/macmattias)
#### Post date: [August 14, 2019, 7:57pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/22 "2019-08-14T19:57:56Z")

</div>

Oh I do know that. 🙂

I have named the dashboard to dash and that is added everywhere in the traefik.toml so how this is put together is beyond me.

---

<div class="post-metadata">

### Author: ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)
#### Post date: [August 14, 2019, 8:00pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/23 "2019-08-14T20:00:35Z")

</div>

> [@macmattias](#):
>
> ```auto
> [docker]
> domain = "grillgeek.se"
> 
> ```

you are using `onHostRule=true` and you have set `domain = "grillgeek.se"`, then the Traefik container it-self have a generated rule: `Host:traefik.docker.grillgeek.se`

> **[Docker | Traefik | v1.7](https://doc.traefik.io/traefik/v1.7/configuration/backends/docker/)**
>
> Traefik Documentation

> **[Let's Encrypt | Traefik | v1.7](https://doc.traefik.io/traefik/v1.7/configuration/acme/)**
>
> Traefik Documentation

---

<div class="post-metadata">

### Author: ![macmattias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macmattias/32/102_2.png) [@macmattias](https://community.traefik.io/u/macmattias)
#### Post date: [August 14, 2019, 8:02pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/24 "2019-08-14T20:02:28Z")

</div>

That is a line from some guide I have read today... remove?  
It can not be used for wildcard domains... say what? Ok it is gone.

---

<div class="post-metadata">

### Author: ![macmattias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macmattias/32/102_2.png) [@macmattias](https://community.traefik.io/u/macmattias)
#### Post date: [August 14, 2019, 8:06pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/25 "2019-08-14T20:06:52Z")

</div>

@Idez ssshhh but it is working now... at least for my main domain... no warnings, log is empty.  
THANK YOU! 😍

I will help others after this struggle of mine, learnt some of what Traefik is. 🙂

We will see what happens when I add the next subdomain... and the next...  
First up is Nextcloud, then Plex...

---

<div class="post-metadata">

### Author: ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)
#### Post date: [August 14, 2019, 8:10pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/26 "2019-08-14T20:10:21Z")

</div>

I will give you some tips to debug Traefik:

- with the log level DEBUG, try to find `Global configuration loaded`, this line contains your static configuration in a JSON format. (the auth and certificates information are removed)
- try to find lines with `level=error`, they contains important information about problems
- with the log level DEBUG, try to find `Configuration received from provider docker:`, this line contains the effective configuration built by Traefik for your containers.

I can see you 😉 [https://grillgeek.se/](https://grillgeek.se/)

---

<div class="post-metadata">

### Author: ![macmattias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macmattias/32/102_2.png) [@macmattias](https://community.traefik.io/u/macmattias)
#### Post date: [August 14, 2019, 8:15pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/27 "2019-08-14T20:15:29Z")

</div>

I am so grateful for sticking with me, I hope that I haven't sounded to stupid... 🙂  
I have learnt a lot today. And I will read up on how to add subdomains now - before I do it and mess everything up again.

---

<div class="post-metadata">

### Author: ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)
#### Post date: [August 14, 2019, 8:15pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/28 "2019-08-14T20:15:30Z")

</div>

The dashboard is available on localhost:8080

if you want to add a domain on it:

```auto
version: '3.7'
services:

    traefik:
        image: traefik:v1.7.13
        container_name: traefik
        restart: always
        networks:
            - web
        ports:
            - 80:80
            - 443:443
            - 8080:8080
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock:ro
            - /home/ladmin/docker/traefik/traefik.toml:/traefik.toml
            - /home/ladmin/docker/traefik/acme.json:/acme.json
        environment:
            - CF_API_EMAIL=${CLOUDFLARE_EMAIL}
            - CF_API_KEY=${CLOUDFLARE_API_KEY}
        labels:
          - 'traefik.port=8080'
          - 'traefik.docker.network=web'
          - 'traefik.enable=true'
          - 'traefik.frontend.rule=Host:admin.docker.localhost'

```

---

<div class="post-metadata">

### Author: ![macmattias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macmattias/32/102_2.png) [@macmattias](https://community.traefik.io/u/macmattias)
#### Post date: [August 14, 2019, 8:16pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/29 "2019-08-14T20:16:18Z")

</div>

Yeah I found it. grillgeek.se:8000 as well. Password protected. Phew.

---

<div class="post-metadata">

### Author: ![macmattias](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/macmattias/32/102_2.png) [@macmattias](https://community.traefik.io/u/macmattias)
#### Post date: [August 14, 2019, 8:20pm UTC](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215/30 "2019-08-14T20:20:19Z")

</div>

Added that labels part, and changed the last line to:

- 'traefik.frontend.rule=Host:dash.localhost, dash.${DOMAINNAME}'

[Previous page](https://community.traefik.io/t/please-help-i-am-loosing-my-mind-over-ssl/1215.md?page=1)
