nomad

HCL and Docker files for Nomad deployments
git clone https://git.in0rdr.ch/nomad.git
Log | Files | Refs | Pull requests |Archive

commit 5edf706060068f249b6913a933495c620d33b85c
parent 871bf0d6e69cf4dfe1f8c56fce149739ff321263
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 20 Oct 2024 10:53:13 +0200

feat(myheats-demo): cleanup frontend/backend vars

Diffstat:
Mhcl/default/myheats-demo/templates/backend-env.local.tmpl | 11++++++++++-
Mhcl/default/myheats-demo/templates/frontend-env.local.tmpl | 13+++++++++----
2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/hcl/default/myheats-demo/templates/backend-env.local.tmpl b/hcl/default/myheats-demo/templates/backend-env.local.tmpl @@ -1,8 +1,17 @@ +########## +# Shared # +########## + # Full URI to backend http API VITE_API_URI=http://{{ env "NOMAD_IP_api_http" }} # Backend API port VITE_API_PORT={{ env "NOMAD_PORT_api_http" }} +########### +# Backend # +########### + +# Redirect url for magic links API_REDIRECT_URI=https://myheats-demo.p0c.ch/authverify # Backend API CORS allowed origins API_CORS_ALLOW_ORIGIN=https://myheats-demo.p0c.ch @@ -20,7 +29,7 @@ SMTP_USER={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_user}}{{end}} SMTP_FROM={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_from}}{{end}} SMTP_PASSWORD={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_password}}{{end}} -# PostgreSQL environment variables +# PostgreSQL environment variables for psql client # https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables # PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc. PGHOST={{with secret "kv/myheats-demo"}}{{index .Data.data.pghost}}{{end}} diff --git a/hcl/default/myheats-demo/templates/frontend-env.local.tmpl b/hcl/default/myheats-demo/templates/frontend-env.local.tmpl @@ -1,3 +1,12 @@ +########## +# Shared # +########## + +# Full URI to backend http API +VITE_API_URI=https://api-myheats-demo.p0c.ch +# Backend API http port +VITE_API_PORT=443 + ############ # Frontend # ############ @@ -6,10 +15,6 @@ VITE_APP_DOC_TITLE='MyHeats Demo' # Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m VITE_SESSION_TTL=259200 #72h -# Full URI to backend http API -VITE_API_URI=https://api-myheats-demo.p0c.ch -# Backend API port -VITE_API_PORT=443 # Full URI to backend websocket API VITE_WS_URI=wss://api-myheats-demo.p0c.ch # Backend API websocket port