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 dynamic files :
gitlab.toml
[http]
[http.routers]
[http.routers.test_route_gitlab]
entryPoints = ["test_secure"]
service = "test_gitlab"
rule = "Host(`test.theturn.fr`) && Path(`/`)"
middlewares = ["test_gitlab_https"]
[http.routers.test_route_gitlab.tls]
certResolver = "test_certs"
options = "intermediate"
[http.middlewares]
[http.middlewares.test_gitlab_https.redirectScheme]
scheme = "https"
permanent = true
[http.services]
[http.services.test_gitlab]
[http.services.test_gitlab.loadBalancer]
[[http.services.test_gitlab.loadBalancer.servers]]
url = "http://192.168.1.56:80"
[tls.options]
[tls.options.intermediate]
minVersion = "VersionTLS12"
cipherSuites = [
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
]
my second dynamic file : doku.toml
[http]
[http.routers]
[http.routers.test2_route_doku]
entryPoints = ["test_secure"]
service = "test2_doku"
rule = "Host(`test2.theturn.fr`) && Path(`/`)"
middlewares = ["test2_doku_https"]
[http.routers.test2_route_doku.tls]
certResolver = "theturn_certs"
options = "intermediate"
[http.middlewares]
[http.middlewares.test2_doku_https.redirectScheme]
scheme = "https"
permanent = true
[http.services]
[http.services.test2_doku]
[http.services.test2_doku.loadBalancer]
[[http.services.test2_doku.loadBalancer.servers]]
url = "http://192.168.1.51:80"
[tls.options]
[tls.options.intermediate]
minVersion = "VersionTLS12"
cipherSuites = [
"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305",
"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
]
and to finish this is my docker-compose file :
version: '3.3'
services:
traefik:
image: traefik:2.3.6
volumes:
#- /home/pi/traefik-v2/config.toml:/etc/traefik/config.toml
- /home/pi/traefik-v2/certs/acme.json/acme.json:/acme.json
- /home/pi/traefik-v2/conf.d:/etc/traefik/conf.d
ports:
- 80:80
- 443:443
- 8080:8080
command:
- "--global.sendAnonymousUsage"
- "--log.level=INFO"
- "--accesslog=true"
- "--api.insecure=true"
- "--api=true"
- "--api.dashboard=true"
- "--providers.file.directory=/etc/traefik/conf.d/"
- "--providers.file.watch=true"
- "--entrypoints.test.address=:80"
- "--entrypoints.test_secure.address=:443"
- "--entrypoints.test.http.redirections.entrypoint.scheme=https"
- "--entrypoints.test.http.redirections.entrypoint.to=test_secure"
- "--certificatesresolvers.test_certs.acme.email=uchi@theturn.fr"
- "--certificatesresolvers.test_certs.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"
- "--certificatesresolvers.test_certs.acme.storage=/acme.json"
- "--certificatesresolvers.test_certs.acme.keytype=RSA4096"
- "--certificatesresolvers.test_certs.acme.httpchallenge.entrypoint=test"
- "--certificatesresolvers.test_certs.acme.httpchallenge=true"
Thanks for your help guys