santimar / traefik-home Goto Github PK
View Code? Open in Web Editor NEWHomepage for Traefik Proxy v2
License: GNU General Public License v3.0
Homepage for Traefik Proxy v2
License: GNU General Public License v3.0
Just the first Host (and Path/PathPrefix after #26 gets merged) of a rule is used, but it's not written in the documentation
Let's join the dark side ๐ค
Maybe add the option ?
On release 1.0.0 it's possible to manually check if a new update is available.
This check could be done automatically, life is too short to waste time.
How do you use this with a docker socket-proxy?
Many thanks.
Im not at home right now but, should be pretty easy to add. i will also look if it's possible to check into the traefiks rules added manually . this would be perfect for my use case.
{{ $entrypoint_label := print "traefik.http.routers." $service_name ".entrypoints" }}
{{ $entrypoint := index $container.Labels $entrypoint_label }}
{{ $protocol := "" }}
{{ if eq $entrypoint "websecure" }}
{{ $protocol = "https" }}
{{ else if eq $entrypoint "443" }}
{{ $protocol = "http" }}
{{ else if eq $entrypoint "web" }}
{{ $protocol = "http" }}
{{ else if eq $entrypoint "web" }}
{{ $protocol = "80" }}
{{ else }}
{{/* entrypoint not supported */}}
{{continue}}
{{ end }}
Host like foo-bar.domain.com
are not correctly parsed due to wrong regex.
First of all, I love this !
Status light is especially very nice and helpful.
However I got a question/suggestion, Is there any way on how to order them ?
They are sorted by container creation date, which isn't optimal.
I'd love to have possibility for alphabet ordering or custom ordering as well.
Just noticed this doesn't work when using --providers.docker.defaultRule=Host..
instead of label traefik.http.routers.xxxx.rule=Host...
for each service.
๐
This is a great little project, I was looking for something to give myself a quick dev dashboard and this does the job nicely!
This might be something to add to the README if it's useful for anybody else, but I wanted to serve some static icons for some local projects.
This can be achieved by mounting them into the container if you already have them on the host filesystem in another checked out repo, for example.
traefik-home:
image: ghcr.io/santimar/traefik-home:v1.4.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- "/path/to/your/logo.svg:/usr/share/nginx/html/icons/my-mounted-logo.svg:ro"
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik-home.tls=true"
- "traefik.http.routers.traefik-home.rule=Host(`dashboard.localhost`)"
You can then reference this in your other container labels like so:
- "traefik-home.icon=https://dashboard.localhost/icons/my-mounted-logo.svg"
Hope this might come in handy for somebody else.
Thanks again for the effort that has gone into this project! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.