Hello, I come here because it's been a while since I've been able to solve my problems so last hope! and thanks to those who will help me
I can't find my url, I get a 404 page not found each time unfortunately
here is the configuration of my files (git-rule.toml, traefik.toml, docker-compose.yml) :
git-rule.toml
[http.routers]
# Dedicated router for Yeswecan SCM.
[http.routers.project]
entryPoints = ["web"]
middlewares = ["https_redirect"]
rule = "Host(`project.yeswecan.fr`)"
service = "project"
# Using main certResolver conf. to request a certificate; declared in traefik.toml.
[http.routers.project.tls]
certResolver = "dedicated"
[http.services]
# Dedicated service for Yeswecan SCM (GitLab).
[http.services.project]
[[http.services.project.loadBalancer.servers]]
url = "http://192.168.1.40"
traefik.toml
# Main entryPoints definition block.
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.websecure]
address = ":443"
# SSL/TLS certificate configuration block; provided by Let's encrypt.
[certificatesResolvers.dedicated.acme]
email = "matteo@yeswecan.fr"
storage = "/etc/traefik/acme/acme.json"
caServer = "https://acme-v02.api.letsencrypt.org/directory"
# Cert. validation made through http challenge and "web" entryPoint.
[certificatesResolvers.dedicated.acme.httpChallenge]
entryPoint = "web"
[providers]
[providers.file]
directory = "/etc/traefik/"
watch = true
[log]
filePath = "/var/log/traefik/traefik.log"
format = "common"
# Traefik API is enabled.
[api]
dashboard = true # Dashboard is available only "locally" (Yeswecan internal network)
insecure = true # No authentication on dashboard
# Main middlewares configuration block.
[http.middlewares]
# Traffic redirection from every router calling this middleware (http ---> https).
[http.middlewares.https_redirect.redirectScheme]
scheme = "https"
permanent = true
docker-compose.yml
version: '3.3'
services:
reverse-proxy:
image: traefik:v2.1.3
container_name: "traefik"
command:
- "--api.insecure=true"
- "--certificatesresolvers.dedicated.acme.httpchallenge=true"
- "--certificatesresolvers.dedicated.acme.httpchallenge.entrypoint=web"
- "--certificatesresolvers.dedicated.acme.email=matteo@yeswecan.fr"
- "--certificatesresolvers.dedicated.acme.storage=/etc/traefik/acme/acme.json"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.api.address=:8080"
- "--log.level=DEBUG"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
ports:
- "80:80" # The HTTP port
- "8080:8080" # The Web UI (enabled by --api)
- "443:443" # The HTTPS port
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
- ./traefik.toml:/etc/traefik/traefik.toml
- ./rules:/etc/traefik/rules
- ./acme/acme.json:/etc/traefik/acme/acme.json
- ./log:/var/log/traefik