Minor Changes
This commit is contained in:
parent
4767ac1ea8
commit
38c8873e74
1 changed files with 6 additions and 6 deletions
|
@ -2,6 +2,10 @@ job "mixpost" {
|
||||||
datacenters = ["aperture"]
|
datacenters = ["aperture"]
|
||||||
type = "service"
|
type = "service"
|
||||||
|
|
||||||
|
meta {
|
||||||
|
domain = "mixpost.redbrick.dcu.ie"
|
||||||
|
}
|
||||||
|
|
||||||
group "mixpost" {
|
group "mixpost" {
|
||||||
network {
|
network {
|
||||||
port "http" {
|
port "http" {
|
||||||
|
@ -24,7 +28,7 @@ job "mixpost" {
|
||||||
tags = [
|
tags = [
|
||||||
"traefik.enable=true",
|
"traefik.enable=true",
|
||||||
"traefik.port=${NOMAD_PORT_http}",
|
"traefik.port=${NOMAD_PORT_http}",
|
||||||
"traefik.http.routers.mixpost.rule=Host(`mixpost.redbrick.dcu.ie`)",
|
"traefik.http.routers.mixpost.rule=Host(`${NOMAD_META_domain}`)",
|
||||||
"traefik.http.routers.mixpost.entrypoints=web,websecure",
|
"traefik.http.routers.mixpost.entrypoints=web,websecure",
|
||||||
"traefik.http.routers.mixpost.tls.certresolver=lets-encrypt",
|
"traefik.http.routers.mixpost.tls.certresolver=lets-encrypt",
|
||||||
"traefik.http.routers.mixpost.tls.certresolver=mytlschallenge",
|
"traefik.http.routers.mixpost.tls.certresolver=mytlschallenge",
|
||||||
|
@ -54,7 +58,7 @@ APP_NAME=MIXPOST
|
||||||
|
|
||||||
APP_KEY={{ key "mixpost/APP_KEY" }}
|
APP_KEY={{ key "mixpost/APP_KEY" }}
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_DOMAIN=mixpost.redbrick.dcu.ie
|
APP_DOMAIN=${NOMAD_META_domain}
|
||||||
APP_URL=https://${APP_DOMAIN}
|
APP_URL=https://${APP_DOMAIN}
|
||||||
|
|
||||||
DB_HOST={{ env "NOMAD_IP_db" }}
|
DB_HOST={{ env "NOMAD_IP_db" }}
|
||||||
|
@ -109,8 +113,6 @@ EOH
|
||||||
|
|
||||||
template {
|
template {
|
||||||
data = <<EOH
|
data = <<EOH
|
||||||
[server]
|
|
||||||
|
|
||||||
[mariadbd]
|
[mariadbd]
|
||||||
|
|
||||||
pid-file = /run/mysqld/mysqld.pid
|
pid-file = /run/mysqld/mysqld.pid
|
||||||
|
@ -122,8 +124,6 @@ expire_logs_days = 10
|
||||||
|
|
||||||
character-set-server = utf8mb4
|
character-set-server = utf8mb4
|
||||||
character-set-collations = utf8mb4=uca1400_ai_ci
|
character-set-collations = utf8mb4=uca1400_ai_ci
|
||||||
|
|
||||||
[mariadbd]
|
|
||||||
EOH
|
EOH
|
||||||
destination = "local/server.cnf"
|
destination = "local/server.cnf"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue