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

author Nemo <me@captnemo.in> 2017-12-28 22:37:19.0 +05:30:00
committer Nemo <me@captnemo.in> 2017-12-28 22:37:19.0 +05:30:00
commit
8bcb5b166fb7582f669bb3e66f1d1847624d2a69 [patch]
tree
8e595857c8e0520514ef08bb32bb3aa19f732ce6
parent
b745498004d0616a1e8930f4f9beb374e69dc0c1
download
8bcb5b166fb7582f669bb3e66f1d1847624d2a69.tar.gz

add more domains on SSL



Diff

 docker/lychee.tf         |  2 +-
 mysql/main.tf            | 15 +++++++++++----
 docker/conf/traefik.toml |  9 +++++++++
 3 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/docker/lychee.tf b/docker/lychee.tf
index 9f47603..32f268c 100644
--- a/docker/lychee.tf
+++ a/docker/lychee.tf
@@ -28,7 +28,7 @@
    "traefik.frontend.headers.customFrameOptionsValue" = "${var.xfo_allow}"

    "traefik.frontend.auth.basic"                      = "${var.basic_auth}"

    "traefik.frontend.headers.customResponseHeaders"   = "${var.xpoweredby}"

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

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

  }

  env = [

diff --git a/mysql/main.tf b/mysql/main.tf
index 47d3416..763a396 100644
--- a/mysql/main.tf
+++ a/mysql/main.tf
@@ -1,22 +1,23 @@
# # This is pending on https://github.com/hashicorp/go-version/pull/34

# Create a Database
resource "mysql_database" "lychee" {

  name = "lychee"

  lifecycle {

    prevent_destroy = true
  }
}

resource "mysql_user" "lychee" {

    user = "lychee"
    host = "${var.lychee_ip}"
    plaintext_password = "${var.mysql_lychee_password}"
  user               = "lychee"
  host               = "${var.lychee_ip}"
  plaintext_password = "${var.mysql_lychee_password}"
}

resource "mysql_grant" "lychee" {

    user = "${mysql_user.lychee.user}"
    host = "${mysql_user.lychee.host}"
    database = "${mysql_database.lychee.name}"
    privileges = ["ALL"]
  user       = "${mysql_user.lychee.user}"
  host       = "${mysql_user.lychee.host}"
  database   = "${mysql_database.lychee.name}"
  privileges = ["ALL"]
}
diff --git a/docker/conf/traefik.toml b/docker/conf/traefik.toml
index 92c3146..46541e4 100644
--- a/docker/conf/traefik.toml
+++ a/docker/conf/traefik.toml
@@ -75,23 +75,30 @@
  "airsonic.in.bb8.fun",
  "cadvisor.bb8.fun",
  "couchpotato.bb8.fun",
  "debug.in.bb8.fun",
  "ebooks.bb8.fun",
  "ebooks.in.bb8.fun",
  "emby.bb8.fun",
  "emby.in.bb8.fun",
  "debug.in.bb8.fun",
  "flexget.bb8.fun",
  "git.bb8.fun",
  "gitea.bb8.fun",
  "grafana.bb8.fun",
  "headphones.bb8.fun",
  "home.bb8.fun",
  "home.in.bb8.fun",
  "library.bb8.fun",
  "luke.bb8.fun",
  "monitoring.bb8.fun",
  "muximux.bb8.fun",
  "muximux.in.bb8.fun",
  "pics.bb8.fun",
  "pics.in.bb8.fun",
  "read.bb8.fun",
  "read.in.bb8.fun",
  "rey.bb8.fun",
  "scan.bb8.fun",
  "tatooine.bb8.fun",
  "traefik.bb8.fun",
  "transmission.bb8.fun",
  "wiki.bb8.fun"