heziode / traefik-v2-https-ssl-localhost Goto Github PK
View Code? Open in Web Editor NEWA simple example on how to use Traefik on localhost with HTTPS
License: MIT License
A simple example on how to use Traefik on localhost with HTTPS
License: MIT License
Is there any docker compose for authelia to work with your setup for this Heziode?
managed to get your traefik for local lan homelab setup. just not sure how to add authelia to that however.
First of all, thank you for this simple-yet-clear Traefik template with HTTPS!
I have a question regarding these lines:
traefik-v2-https-ssl-localhost/docker-compose.yml
Lines 28 to 29 in 73fb3f3
From what I understand, the lines will reference to traefik
router object configuration declared in the dynamic config file (well, more or less like the comment in line 28). However, I have not found the documentation/reference regarding referencing the whole router
object configuration (traefik.http.routers.<router-name>
). The closest documentation I found is this and this, but it doesn't mention anything about referencing the whole router
object.
I ran this one and it works like a charm and we can access the dashboard with https, I was wondering, what should be done and what steps should be taken to run the whoami with https aswell? Any insights and ideas about this?
https://www.youtube.com/watch?v=qlcVx-k-02E
not really an issue per say, but i wanted to point out wolfgang's approach where he can get around the not valid cert warnings, using the method he points out in his video.
any opinions his approach? looks promising.
lots of benefits since you can get the green sign (no longer complaints about invalid certs), and you can do this for an offline homelab for those of us that don't want to expose our homelab online.
Not sure it's working for me :{
logs says
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Configuration loaded from file: /etc/traefik/traefik.yml"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Traefik version 2.9.6 built on 2022-12-07T14:17:58Z"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://doc.traefik.io/traefik/contributing/data-collection/\n"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Starting provider aggregator aggregator.ProviderAggregator"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Starting provider *file.Provider"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=error msg="Cannot start the provider *file.Provider: yaml: unmarshal errors:\n line 20: mapping key \"http\" already defined at line 1"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Starting provider *traefik.Provider"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Starting provider *docker.Provider"
27/12/2022 7:14:17
time="2022-12-26T23:14:17Z" level=info msg="Starting provider *acme.ChallengeTLSALPN"
so line 20 in docker compose was
version: '3'
services:
reverse-proxy:
image: traefik:latest
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
ports:
# Web
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
# Map the static configuration into the container
- /share/Container/traefik/config/static.yml:/etc/traefik/traefik.yml:ro
# Map the dynamic configuration into the container
- /share/Container/traefik/config/dynamic.yml:/etc/traefik/dynamic.yml:ro
# Map the certificats into the container
- /share/Container/traefik/config/certs:/etc/certs:ro
networks:
- proxy
networks:
proxy:
external: true
the traefik.yml line.
not sure how to fix this.
for http://server ip there is a 404 response. But when i do /dashboard/ nothing happens. even the traefik.docker.localhost](https://traefik.docker.localhost/ doesnt seem to work at all
Hi and thank you very much for this repo and documentation. It helps a lot !
I was wondering how to configure everything properly so that I could access containers from an other domain than the "docker.localhost" one ?
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.