Giter Club home page Giter Club logo

Comments (18)

htpcBeginner avatar htpcBeginner commented on May 22, 2024 7

I am working on it guys. I promise!

from docker-traefik.

htpcBeginner avatar htpcBeginner commented on May 22, 2024 1

That can certainly happen. I was thinking about it and would have been my next suggestion. I am closing this issue.

from docker-traefik.

g0Idfinger avatar g0Idfinger commented on May 22, 2024

if you look at my repository I have a working Traefik 2 config with plex, radarr, sonarr, qbittorrent, piwigo, pihole, and a few others. Not sure if it will help you or not. https://github.com/adradloff/docker-HTPC Its my first git so I'm still learning a bit, the readme may not be so clear as of yet.

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

@htpcBeginner @adradloff Hi guys are you having issues getting traefik.domain.com working in your setup I am trying to allow access to the traefik ui using the google oauth but it just gives me a server not found error in my browser, I have altered the - "traefik.http.routers.traefik-rtr.middlewares label in the traefik container to include the oauth@file am I missing something must have tried every combination I can think of (apologies for the noob question I am still getting my head around v2) could it be to do with adding the oauth file in the above and then adding another label for the middleware to use chain-oauth@file as as it stands it doesnt work at all when I add the oauth

from docker-traefik.

g0Idfinger avatar g0Idfinger commented on May 22, 2024

@Joeharrison94 In my docker-compose file I have this line - "traefik.http.routers.traefik-rtr.middlewares=traefik-headers,middlewares-rate-limit@file,chain-oauth@file" The last part(,chain-oauth@file" ) is what I added to get Google oauth to work. once logged in it works just fine and takes me to the traefik dashboard.

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

That’s odd it doesn’t work for me, are you using the same yml file as in your repo

from docker-traefik.

g0Idfinger avatar g0Idfinger commented on May 22, 2024

Yes I am. I updated it yesterday and rebuilt it on my server, it all is running as it should.

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

ok so I have identical config to you yet when I launch my compose all apps work except for traefik, it worked once then never again, I also noticed that when I run docker compose up it shows the name of the traefik container is docker_traefik_1 which is very odd, and when I go to traefik.mydomain.co.uk it redirects to trafik.mydomain.co.uk (in a browser that has already passed oauth) but in incognito mode it goes to oauth so im sure that works but it seems something is wrong with my traefik container but I dont know how to remove it and start fresh with just that one container.

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

Fixed the container name but the rest is still the same

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

Could you tell me the process on how to refresh the certs and remove traefik and readd it as it isn’t working as I mentioned before

from docker-traefik.

g0Idfinger avatar g0Idfinger commented on May 22, 2024

docker stop traefik - stops the container
docker rm traefik - removes the container
rm traefik2/acme/acme.json - removes traefik certificates
touch traefik2/acme/acme.json - recreates a blank file
chmod 600 traefik2/acme/acme.json - give it correct permissions to traefik

If you want to test just traefik create a new yml file with only the traefik and oauth. make sure you have the network section too.

Ensure you un-comment out - "traefik.http.routers.traefik-rtr.tls.certresolver=dns-cloudflare" to ensure it recreates your certificates in the acme.json file.

docker-compose -f filename.yml up -d

After first run re comment it out and re run your yml file to ensure wildcard certs.

docker-compose -f filename.yml up -d

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

Ok no problem I’ll give it a whirl tomorrow thank you, do you think it is an issue that sabnzbd traefik port is 8080 also ? And what could cause the weird browser redirection to trafik instead of traefik

from docker-traefik.

g0Idfinger avatar g0Idfinger commented on May 22, 2024

the weird redirection would most likely be a misspelling in the config.
As for the port I would try a different port and see if that works.

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

ok so i did all of the above deleted the container, and acme json uncommented the line and changed the port yet im still getting a redirect to trafik, there is no reference of this in any config, I think it is caching it somewhere how can I fix this :/

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

also if i go to the local ip and 9090 im getting a 404 error

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

thats the port i chose instead of 8080

from docker-traefik.

htpcBeginner avatar htpcBeginner commented on May 22, 2024

@Joeharrison94 when you access locally (local IP) are you using HTTP or https?

I would strong suggest you to not have any other apps running. First get your traefik 2 and dashboard up and running. Check acme.json to make sure certs have been pulled.

Then start adding other apps.

PS: I am writing a Traefik 2 guide. However, it is at least 1 week away from publication. Half way through it now.

EDIT: Are you using your browser in private/incognito mode? your browser will cache things which definitely will cause issues. So during testing, always use private/incognito mode.

from docker-traefik.

sudo-kraken avatar sudo-kraken commented on May 22, 2024

I’ve cracked it! Something was wrong in the image files I deleted the image and pulled it again and used my old config with the uncommented the line and hey presto :D hopefully it carries on working when I down it to comment out the line

from docker-traefik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.