Be a good citizen and report anon metrics to traefik

This commit is contained in:
Nemo 2018-03-02 14:30:40 +05:30
parent 70bb2ec9bc
commit 81206fd755
3 changed files with 4 additions and 11 deletions

View File

@ -1,7 +1,10 @@
defaultEntryPoints = ["http", "https"] defaultEntryPoints = ["http", "https"]
# Have to enable this because of heimdall
InsecureSkipVerify = true InsecureSkipVerify = true
sendAnonymousUsage = true
[entryPoints] [entryPoints]
[entryPoints.http] [entryPoints.http]
address = ":80" address = ":80"

View File

@ -1,13 +1,10 @@
# resource "docker_container" "headerdebug" { # resource "docker_container" "headerdebug" {
# name = "headerdebug" # name = "headerdebug"
# image = "${docker_image.headerdebug.latest}" # image = "${docker_image.headerdebug.latest}"
# restart = "unless-stopped" # restart = "unless-stopped"
# destroy_grace_seconds = 30 # destroy_grace_seconds = 30
# must_run = true # must_run = true
# memory = 16 # memory = 16
# labels = "${merge( # labels = "${merge(
# local.traefik_common_labels, # local.traefik_common_labels,
# map( # map(
@ -16,3 +13,4 @@
# "traefik.enable", "true", # "traefik.enable", "true",
# ))}" # ))}"
# } # }

View File

@ -13,47 +13,39 @@ resource "docker_container" "airsonic" {
content = "${data.template_file.airsonic-properties-file.rendered}" content = "${data.template_file.airsonic-properties-file.rendered}"
file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/airsonic.properties" file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/airsonic.properties"
} }
# This lets the Jukebox use ALSA # This lets the Jukebox use ALSA
upload { upload {
content = "${file("${path.module}/conf/airsonic.sound.properties")}" content = "${file("${path.module}/conf/airsonic.sound.properties")}"
file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/sound.properties" file = "/usr/lib/jvm/java-1.8-openjdk/jre/lib/sound.properties"
} }
volumes { volumes {
host_path = "/mnt/xwing/config/airsonic/data" host_path = "/mnt/xwing/config/airsonic/data"
container_path = "/config" container_path = "/config"
} }
volumes { volumes {
host_path = "/mnt/xwing/media/Music" host_path = "/mnt/xwing/media/Music"
container_path = "/music" container_path = "/music"
} }
volumes { volumes {
host_path = "/mnt/xwing/config/airsonic/playlists" host_path = "/mnt/xwing/config/airsonic/playlists"
container_path = "/playlists" container_path = "/playlists"
} }
volumes { volumes {
host_path = "/mnt/xwing/config/airsonic/podcasts" host_path = "/mnt/xwing/config/airsonic/podcasts"
container_path = "/podcasts" container_path = "/podcasts"
} }
labels { labels {
"traefik.enable" = "true" "traefik.enable" = "true"
"traefik.port" = "4040" "traefik.port" = "4040"
"traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}" "traefik.frontend.rule" = "Host:airsonic.in.${var.domain},airsonic.${var.domain}"
"traefik.frontend.passHostHeader" = "true" "traefik.frontend.passHostHeader" = "true"
} }
# lounge:tatooine # lounge:tatooine
env = [ env = [
"PUID=1004", "PUID=1004",
"PGID=1003", "PGID=1003",
"TZ=Asia/Kolkata", "TZ=Asia/Kolkata",
] ]
links = ["${var.links-mariadb}"] links = ["${var.links-mariadb}"]
} }