From 23658c4d9141f99a25f1f5d5aeecd1add41452d0 Mon Sep 17 00:00:00 2001 From: Gurulandia Date: Sun, 1 Mar 2026 12:27:32 +0200 Subject: [PATCH] Jemmaan --- config/docker/2022/misc/servers.json | 14 ++ config/docker/2022/misc/traefik.yml | 206 +++++++++++++++++++++++++++ 2 files changed, 220 insertions(+) create mode 100644 config/docker/2022/misc/servers.json create mode 100644 config/docker/2022/misc/traefik.yml diff --git a/config/docker/2022/misc/servers.json b/config/docker/2022/misc/servers.json new file mode 100644 index 0000000..0a0a83d --- /dev/null +++ b/config/docker/2022/misc/servers.json @@ -0,0 +1,14 @@ +{ + "Servers": { + "1": { + "Name": "example", + "Group": "Servers", + "Host": "postgres", + "Port": 5432, + "MaintenanceDB": "postgres", + "Username": "postgres", + "PassFile": "/pgpass", + "SSLMode": "prefer" + } + } +} diff --git a/config/docker/2022/misc/traefik.yml b/config/docker/2022/misc/traefik.yml new file mode 100644 index 0000000..62f5d63 --- /dev/null +++ b/config/docker/2022/misc/traefik.yml @@ -0,0 +1,206 @@ +################################################################ +# +# Configuration sample for Traefik v2. +# +# For Traefik v1: https://github.com/traefik/traefik/blob/v1.7/traefik.sample.toml +# +################################################################ + +################################################################ +# Global configuration +################################################################ +global: + checkNewVersion: true + sendAnonymousUsage: false + +################################################################ +# EntryPoints configuration +################################################################ + +# EntryPoints definition +# +# Optional +# +entryPoints: + http: + address: :80 + http: + redirections: + entryPoint: + to: https + scheme: https + https: + address: :443 + http: + tls: + options: tls-opts@file + certResolver: cloudflare + domains: + - main: gurulandia.eu + sans: + - *.gurulandia.eu + - main: local.gurulandia.eu + sans: + - *.local.gurulandia.eu + #- main: gurulandia.fi + # sans: + # - *.gurulandia.fi + forwardedHeaders: + trustedIPs: + - "173.245.48.0/20" + - "103.21.244.0/22" + - "103.22.200.0/22" + - "103.31.4.0/22" + - "141.101.64.0/18" + - "108.162.192.0/18" + - "190.93.240.0/20" + - "188.114.96.0/20" + - "197.234.240.0/22" + - "198.41.128.0/17" + - "162.158.0.0/15" + - "172.64.0.0/13" + - "131.0.72.0/22" + - "104.16.0.0/13" + - "104.24.0.0/14" + +serversTransport: + insecureSkipVerify: true +################################################################ +# Traefik logs configuration +################################################################ + +# Traefik logs +# Enabled by default and log to stdout +# +# Optional +# +log: + # Log level + # + # Optional + # Default: "ERROR" + # + level: INFO + + # Sets the filepath for the traefik log. If not specified, stdout will be used. + # Intermediate directories are created if necessary. + # + # Optional + # Default: os.Stdout + # + filePath: "/var/log/traefik/traefik.log" + + # Format is either "json" or "common". + # + # Optional + # Default: "common" + # +# format: json + +################################################################ +# Access logs configuration +################################################################ +# Enable access logs +# By default it will write to stdout and produce logs in the textual +# Common Log Format (CLF), extended with additional fields. +# +# Optional +# +accessLog: + # Sets the file path for the access log. If not specified, stdout will be used. + # Intermediate directories are created if necessary. + # + # Optional + # Default: os.Stdout + # + filePath: "/var/log/traefik/access.log" + + # Format is either "json" or "common". + # + # Optional + # Default: "common" + # +# format: json + +################################################################ +# API and dashboard configuration +################################################################ + +# Enable API and dashboard +# +# Optional +# +#api: + # Enable the API in insecure mode + # + # Optional + # Default: false + # + # insecure: true + + # Enabled Dashboard + # + # Optional + # Default: true + # +# dashboard: false + +################################################################ +# Ping configuration +################################################################ + +# Enable ping +#ping: + # Name of the related entry point + # + # Optional + # Default: "traefik" + # +# entryPoint: traefik + +providers: + # Enable Docker configuration backend + docker: + # Docker server endpoint. Can be a tcp or a unix socket endpoint. + # + # Required + # Default: "unix:///var/run/docker.sock" + # + endpoint: tcp://socket-proxy:2375 + + # Default host rule. + # + # Optional + # Default: "Host(`{{ normalize .Name }}`)" + # +# defaultRule: Host(`{{ normalize .Name }}.docker.localhost`) + + # Expose containers by default in traefik + # + # Optional + # Default: true + # + exposedByDefault: false + + # Enable File configuration backend + file: + directory: /config + watch: true + # Enable Redis configuration backend + #redis: + #endpoints: + # - "redis:6379" +################################################################ +# Certificate Resolvers +################################################################ +certificatesResolvers: + cloudflare: + acme: + email: gurulandia@outlook.com + storage: acme.json + dnsChallenge: + provider: cloudflare + #disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers. + resolvers: + - "1.1.1.1:53" + - "1.0.0.1:53" \ No newline at end of file