nomad

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

env.local.tmpl (2127B)


      1 ############
      2 # Frontend #
      3 ############
      4 
      5 # Application window title
      6 VITE_APP_DOC_TITLE='MyHeats Demo'
      7 # Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m
      8 VITE_SESSION_TTL=259200 #72h
      9 # Full URI to backend http API
     10 VITE_API_URI=http://{{ env "NOMAD_IP_api_http" }}
     11 # Backend API port
     12 VITE_API_PORT={{ env "NOMAD_PORT_api_http" }}
     13 # Full URI to backend websocket API
     14 VITE_WS_URI=wss://{{ env "NOMAD_IP_api_https" }}
     15 # Backend API websocket port
     16 VITE_WS_PORT={{ env "NOMAD_PORT_api_https" }}
     17 # Locale for frontend date formatting
     18 VITE_LOCALE=de-CH
     19 
     20 ###########
     21 # Backend #
     22 ###########
     23 
     24 API_REDIRECT_URI=https://myheats-demo.p0c.ch/authverify
     25 # Backend API CORS allowed origins
     26 API_CORS_ALLOW_ORIGIN=https://myheats-demo.p0c.ch
     27 # JWT secret for magic links (`openssl rand -base64 48`)
     28 API_JWT_SECRET={{with secret "kv/myheats-demo"}}{{index .Data.data.api_jwt_secret}}{{end}}
     29 # JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m
     30 API_JWT_TTL=259200 #72h
     31 
     32 # SMTP settings for sending magic links
     33 SMTP_HOST={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_host}}{{end}}
     34 # upgrade later with STARTTLS
     35 SMTP_STARTTLS={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_starttls}}{{end}}
     36 SMTP_PORT={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_port}}{{end}}
     37 SMTP_USER={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_user}}{{end}}
     38 SMTP_FROM={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_from}}{{end}}
     39 SMTP_PASSWORD={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_password}}{{end}}
     40 
     41 # PostgreSQL environment variables
     42 # https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables
     43 # PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc.
     44 PGHOST={{with secret "kv/myheats-demo"}}{{index .Data.data.pghost}}{{end}}
     45 PGPORT={{with secret "kv/myheats-demo"}}{{index .Data.data.pgport}}{{end}}
     46 PGDATABASE={{with secret "kv/myheats-demo"}}{{index .Data.data.pgdatabase}}{{end}}
     47 PGUSERNAME={{with secret "kv/myheats-demo"}}{{index .Data.data.pgusername}}{{end}}
     48 PGPASSWORD={{with secret "kv/myheats-demo"}}{{index .Data.data.pgpassword}}{{end}}