🏡 index : github.com/captn3m0/nebula.git

author Nemo <commits@captnemo.in> 2022-12-26 12:46:31.0 +05:30:00
committer Nemo <commits@captnemo.in> 2022-12-26 12:46:31.0 +05:30:00
commit
da4fc888ef7034f57eea734bb202971d96de133a [patch]
tree
d5666bf29f225a6fea6ae0eb9c775d4d96a5dea9
parent
10ba57590bff67590133c9542483f78e4de246a0
download
da4fc888ef7034f57eea734bb202971d96de133a.tar.gz

[WIP] Traefik v2 migration



Diff

 docker/conf/static/new-traefik.toml | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 docker/conf/static/new-traefik.yml  | 26 ++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

diff --git a/docker/conf/static/new-traefik.toml b/docker/conf/static/new-traefik.toml
new file mode 100644
index 0000000..9333449 100644
--- /dev/null
+++ a/docker/conf/static/new-traefik.toml
@@ -1,0 +1,72 @@
# Web must be converted manually. See https://docs.traefik.io/operations/api/
# Redirect on entry point "http" must be converted manually. See https://docs.traefik.io/middlewares/http/redirectscheme/
# TLS on entry point "https" must be converted manually. See https://docs.traefik.io/routing/routers/#tls
# The domain (bb8.fun) defined in the Docker provider must be converted manually. See https://docs.traefik.io/providers/docker/#defaultrule
# All the elements related to dynamic configuration (backends, frontends, ...) must be converted manually. See https://docs.traefik.io/routing/overview/
# The entry point (https) defined in the ACME configuration must be converted manually. See https://docs.traefik.io/routing/routers/#certresolver

[global]
  sendAnonymousUsage = true

[tls.options]
  [tls.options.default]
    minVersion = "VersionTLS12"

[[tls.certificates]]
  certFile = "/etc/traefik/git.captnemo.in.crt"
  keyFile = "/etc/traefik/git.captnemo.in.key"
[[tls.certificates]]
  certFile = "/etc/traefik/rss.captnemo.in.crt"
  keyFile = "/etc/traefik/rss.captnemo.in.key"

# This forces port 8080
[api]
  # https://doc.traefik.io/traefik/operations/dashboard/#insecure-mode
  dashboard = true
  # Enable the API in insecure mode, which means that the API will be available directly on the entryPoint named traefik.
  insecure = true

[entryPoints]
  [entryPoints.http]
    address = ":80"
    [entryPoints.http.http]
  [entryPoints.https]
    address = ":443"
    [entryPoints.https.http]

[providers]
  providersThrottleDuration = "2s"
  [providers.docker]
    watch = true
    endpoint = "unix:///var/run/docker.sock"
    swarmModeRefreshSeconds = "15s"
    httpClientTimeout = "0s"
  [providers.file]

[log]

[accessLog]
  bufferingSize = 0

[certificatesResolvers]
  [certificatesResolvers.default]
    [certificatesResolvers.default.acme]
      email = "acme@captnemo.in"
      storage = "/acme/acme.json"
      certificatesDuration = 0
      [certificatesResolvers.default.acme.dnsChallenge]
        provider = "cloudflare"
        delayBeforeCheck = "2m0s"
      [certificatesResolvers.default.acme.httpChallenge]
        entryPoint = "http"
  [certificatesResolvers.t]
    [certificatesResolvers.t.acme]
      email = "acme@captnemo.in"
      storage = "/acme/acme.json"
      [certificatesResolvers.myresolver.acme.tlsChallenge]


[http.middlewares]
  [http.middlewares.test-redirectscheme.redirectScheme]
    scheme = "https"
    permanent = true
diff --git a/docker/conf/static/new-traefik.yml b/docker/conf/static/new-traefik.yml
new file mode 100644
index 0000000..d5cf8db 100644
--- /dev/null
+++ a/docker/conf/static/new-traefik.yml
@@ -1,0 +1,26 @@
global:
  sendAnonymousUsage: true
entryPoints:
  http:
    address: :80
  https:
    address: :443
providers:
  providersThrottleDuration: 2s
  docker:
    watch: true
    endpoint: unix:///var/run/docker.sock
    swarmModeRefreshSeconds: 15s
  file: {}
log: {}
accessLog: {}
certificatesResolvers:
  default:
    acme:
      email: acme@captnemo.in
      storage: /acme/acme.json
      dnsChallenge:
        provider: cloudflare
        delayBeforeCheck: 2m0s
      httpChallenge:
        entryPoint: http