backend-env.local.tmpl (1704B)
1 # API server protocol and bind address 2 API_URI=http://127.0.0.1 3 # Bind port for API server 4 API_PORT={{ env "NOMAD_PORT_api_http" }} 5 # Redirect url for magic links 6 API_REDIRECT_URI=https://myheats-demo.p0c.ch/authverify 7 # Backend API CORS allowed origins 8 API_CORS_ALLOW_ORIGIN=https://myheats-demo.p0c.ch 9 # JWT secret for magic links (`openssl rand -base64 48`) 10 API_JWT_SECRET={{with secret "kv/myheats-demo"}}{{index .Data.data.api_jwt_secret}}{{end}} 11 # JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m 12 API_JWT_TTL=259200 #72h 13 14 # SMTP settings for sending magic links 15 SMTP_HOST={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_host}}{{end}} 16 # upgrade later with STARTTLS 17 SMTP_STARTTLS={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_starttls}}{{end}} 18 SMTP_PORT={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_port}}{{end}} 19 SMTP_USER={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_user}}{{end}} 20 SMTP_FROM={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_from}}{{end}} 21 SMTP_PASSWORD={{with secret "kv/myheats-demo"}}{{index .Data.data.smtp_password}}{{end}} 22 23 # PostgreSQL environment variables for psql client 24 # https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables 25 # PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc. 26 PGHOST={{with secret "kv/myheats-demo"}}{{index .Data.data.pghost}}{{end}} 27 PGPORT={{with secret "kv/myheats-demo"}}{{index .Data.data.pgport}}{{end}} 28 PGDATABASE={{with secret "kv/myheats-demo"}}{{index .Data.data.pgdatabase}}{{end}} 29 PGUSERNAME={{with secret "kv/myheats-demo"}}{{index .Data.data.pgusername}}{{end}} 30 PGPASSWORD={{with secret "kv/myheats-demo"}}{{index .Data.data.pgpassword}}{{end}}