add more domains on SSL

This commit is contained in:
Nemo 2017-12-28 22:37:19 +05:30
parent b745498004
commit 8bcb5b166f
3 changed files with 17 additions and 9 deletions

View File

@ -75,23 +75,30 @@ sans = [
"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"

View File

@ -28,7 +28,7 @@ resource "docker_container" "lychee" {
"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 = [

View File

@ -3,20 +3,21 @@
# 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"]
}