From c2d3ec3c2ab124158e039fddfd22d35c704afd9f Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Sat, 11 May 2024 21:25:49 +0200 Subject: Replace nginx with traefik --- nomad.tmpl.hcl | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'nomad.tmpl.hcl') diff --git a/nomad.tmpl.hcl b/nomad.tmpl.hcl index e597b36..e703c0e 100644 --- a/nomad.tmpl.hcl +++ b/nomad.tmpl.hcl @@ -2,21 +2,21 @@ data_dir = "/opt/nomad/data" bind_addr = "0.0.0.0" advertise { - http = "127.0.0.1" - rpc = "127.0.0.1" - serf = "127.0.0.1" + http = "{{ ip address }}" + rpc = "{{ ip address }}" + serf = "{{ ip address }}" } server { enabled = true bootstrap_expect = 1 - encrypt = "{{ .secret }}" # why not? + encrypt = "{{ base64 }}" # why not? } client { enabled = true - servers = ["127.0.0.1"] + servers = ["{{ ip address }}"] host_volume "ca-certificates" { path = "/var/local/ca-certificates" @@ -30,10 +30,6 @@ client { path = "/var/www/faktura" } - host_volume "syncthing" { - path = "/var/local/syncthing" - } - host_volume "ctftajm-postgres" { path = "/var/local/ctftajm-postgres" } -- cgit v1.2.3