Giter Site home page Giter Site logo

heziode / traefik-v2-https-ssl-localhost Goto Github PK

View Code? Open in Web Editor NEW
208.0 6.0 57.0 18 KB

A simple example on how to use Traefik on localhost with HTTPS

License: MIT License

https localhost self-signed certificate mkcert docker traefik ssl traefik-v2 traefik2

traefik-v2-https-ssl-localhost's People

Contributors

heziode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

traefik-v2-https-ssl-localhost's Issues

authelia?

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.

Documentation for referencing `router` object?

First of all, thank you for this simple-yet-clear Traefik template with HTTPS!

I have a question regarding these lines:

# Use "traefik" router configuration defined into the dynamic config file: ./traefik/config.yml
- "traefik.http.routers.traefik=true"

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.

whoami-v2-https-ssl-localhost

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?

wolfgang cert

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.

Can't access Traefik dashboard on a QNAP NAS (lan network)

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

Specific domain

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 ?

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.