From 2b81e486fc6b0c70674b870fb1271c73c6bdbc83 Mon Sep 17 00:00:00 2001 From: Raphael Martin Date: Tue, 5 Dec 2023 11:41:04 +0100 Subject: [PATCH] changed version --- docker-compose.yml | 3 ++- tls.yml | 12 ++++++++++-- traefik.yml | 24 +++++++++++++++++++++--- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4027d74..2d4d8b6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "1.0" +version: "3.8" networks: default: @@ -16,6 +16,7 @@ services: - "./traefik.yml:/traefik.yml:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro" - "./tls.yml:/etc/traefik/dynamic_conf/conf.yml:ro" + - "./acme.json:/certificates/acme.json" - "./tls-data:/tls:ro" labels: - "traefik.enable=true" diff --git a/tls.yml b/tls.yml index 179f6e1..76b5727 100644 --- a/tls.yml +++ b/tls.yml @@ -17,5 +17,13 @@ tls: certificates: - certFile: /tls/CF-altogether.at.crt keyFile: /tls/CF-altogether.at.key - stores: - - default + + - certFile: /tls/wordpress.localhost.crt + keyFile: /tls/wordpress.localhost.key + options: + default: + clientAuth: + # in PEM format. each file can contain multiple CAs. + caFiles: + - /tls/server.crt + clientAuthType: VerifyClientCertIfGiven \ No newline at end of file diff --git a/traefik.yml b/traefik.yml index c2a2c17..cf84e14 100644 --- a/traefik.yml +++ b/traefik.yml @@ -1,6 +1,16 @@ ## STATIC CONFIGURATION +global: + checkNewVersion: true + sendAnonymousUsage: false + log: - level: INFO + level: "INFO" + +accessLog: + filePath: "/logs/access.log" + bufferingSize: 100 # Configuring a buffer of 100 lines + filters: + statusCodes: "204-299,400" api: insecure: true @@ -24,9 +34,17 @@ entryPoints: providers: docker: endpoint: "unix:///var/run/docker.sock" - # endpoint: "tcp://dockerproxy:2375" exposedByDefault: false + # endpoint: "tcp://dockerproxy:2375" # swarmMode: false # network: "socket_proxy" file: - directory: "/etc/traefik/dynamic_conf" \ No newline at end of file + watch: true + directory: "/etc/traefik/dynamic_conf" + +certificatesresolvers: + le: + acme: + email: "raphy.martin@protonmail.ch" + storage: "/certificates/acme.json" + tlschallenge: true \ No newline at end of file