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

author Nemo <me@captnemo.in> 2018-02-28 1:05:47.0 +05:30:00
committer Nemo <me@captnemo.in> 2018-02-28 1:05:47.0 +05:30:00
commit
9575ccae481b462f43eb761e2ceb02d44416b35d [patch]
tree
e6f34f33a227ada785ac3e65a8f0a2718c32a19c
parent
08caa8086b77aee9e3be262363a8bf90d6564d03
download
9575ccae481b462f43eb761e2ceb02d44416b35d.tar.gz

Keep internal certs separately deployed



Diff

 docker/traefik.tf        | 10 ++++++++++
 docker/conf/traefik.toml |  7 +++++--
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/docker/traefik.tf b/docker/traefik.tf
index 2867786..c0e676b 100644
--- a/docker/traefik.tf
+++ a/docker/traefik.tf
@@ -67,6 +67,16 @@
    file    = "/etc/traefik/rss.captnemo.in.key"
  }

  upload {

    content = "${file("/home/nemo/projects/personal/certs/emby.in.bb8.fun/privkey.pem")}"
    file    = "/etc/traefik/emby.in.bb8.fun.key"
  }

  upload {

    content = "${file("/home/nemo/projects/personal/certs/emby.in.bb8.fun/fullchain.pem")}"
    file    = "/etc/traefik/emby.in.bb8.fun.crt"
  }

  volumes {

    host_path      = "/var/run/docker.sock"
    container_path = "/var/run/docker.sock"
diff --git a/docker/conf/traefik.toml b/docker/conf/traefik.toml
index a4a8807..08cc99d 100644
--- a/docker/conf/traefik.toml
+++ a/docker/conf/traefik.toml
@@ -17,6 +17,10 @@
  [[entryPoints.https.tls.certificates]]
    certFile = "/etc/traefik/rss.captnemo.in.crt"
    keyFile  = "/etc/traefik/rss.captnemo.in.key"
  # This contains 2 domains: {emby|airsonic}.bb8.fun
  [[entryPoints.https.tls.certificates]]
    certFile = "/etc/traefik/emby.in.bb8.fun.crt"
    keyFile  = "/etc/traefik/emby.in.bb8.fun.key"

[docker]
  # Make sure you mount this as readonly
@@ -92,10 +96,8 @@
  "airsonic.bb8.fun",
  "apps.bb8.fun",
  "cadvisor.bb8.fun",
  "debug.in.bb8.fun",
  "dns.bb8.fun",
  "emby.bb8.fun",
  "emby.in.bb8.fun",
  "falcon.bb8.fun",
  "ghost.bb8.fun",
  "grafana.bb8.fun",
@@ -108,7 +110,6 @@
  "monitoring.bb8.fun",
  "ombi.bb8.fun",
  "pics.bb8.fun",
  "pics.in.bb8.fun",
  "radarr.bb8.fun",
  "read.bb8.fun",
  "rey.bb8.fun",