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

author Nemo <me@captnemo.in> 2018-03-02 14:30:40.0 +05:30:00
committer Nemo <me@captnemo.in> 2018-03-02 14:30:40.0 +05:30:00
commit
81206fd755fffd03bbf8b163b773d36fba5cb834 [patch]
tree
8ad9d79fdb7bf6f0c793cf3911693a18e18779ed
parent
70bb2ec9bc17baaa3d99909cf740a7f088577ec6
download
81206fd755fffd03bbf8b163b773d36fba5cb834.tar.gz

Be a good citizen and report anon metrics to traefik



Diff

 docker/debug.tf          | 4 +---
 media/airsonic.tf        | 8 --------
 docker/conf/traefik.toml | 3 +++
 3 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/docker/debug.tf b/docker/debug.tf
index 3ecf366..ef64e10 100644
--- a/docker/debug.tf
+++ a/docker/debug.tf
@@ -1,13 +1,10 @@
# resource "docker_container" "headerdebug" {
#   name  = "headerdebug"
#   image = "${docker_image.headerdebug.latest}"

#   restart               = "unless-stopped"
#   destroy_grace_seconds = 30
#   must_run              = true

#   memory = 16

#   labels = "${merge(
#     local.traefik_common_labels,
#     map(
@@ -16,3 +13,4 @@
#       "traefik.enable", "true",
#     ))}"
# }

diff --git a/media/airsonic.tf b/media/airsonic.tf
index fb4c96c..bd05f13 100644
--- a/media/airsonic.tf
+++ a/media/airsonic.tf
@@ -13,47 +13,39 @@
    content = "${data.template_file.airsonic-properties-file.rendered}"
    file    = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/airsonic.properties"
  }

  # This lets the Jukebox use ALSA
  upload {

    content = "${file("${path.module}/conf/airsonic.sound.properties")}"
    file    = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/sound.properties"
  }

  volumes {

    host_path      = "/mnt/xwing/config/airsonic/data"
    container_path = "/config"
  }

  volumes {

    host_path      = "/mnt/xwing/media/Music"
    container_path = "/music"
  }

  volumes {

    host_path      = "/mnt/xwing/config/airsonic/playlists"
    container_path = "/playlists"
  }

  volumes {

    host_path      = "/mnt/xwing/config/airsonic/podcasts"
    container_path = "/podcasts"
  }

  labels {

    "traefik.enable"                  = "true"

    "traefik.port"                    = "4040"

    "traefik.frontend.rule"           = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"

    "traefik.frontend.passHostHeader" = "true"

  }

  # lounge:tatooine
  env = [

    "PUID=1004",
    "PGID=1003",
    "TZ=Asia/Kolkata",
  ]

  links = ["${var.links-mariadb}"]
}

diff --git a/docker/conf/traefik.toml b/docker/conf/traefik.toml
index 08cc99d..0fdfe9a 100644
--- a/docker/conf/traefik.toml
+++ a/docker/conf/traefik.toml
@@ -1,6 +1,9 @@
defaultEntryPoints = ["http", "https"]

# Have to enable this because of heimdall
InsecureSkipVerify = true

sendAnonymousUsage = true

[entryPoints]
[entryPoints.http]