nomad

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

commit 56f74f96249eca39f6205c3c17bcf70d3a49e8e9
parent 5edf706060068f249b6913a933495c620d33b85c
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 20 Oct 2024 11:10:15 +0200

fix(docker-myheats): increase VITE_SESSION_TTL

Diffstat:
Ddocker/docker-myheats-nginx/.env | 48------------------------------------------------
Mdocker/docker-myheats-nginx/Dockerfile | 7++++---
2 files changed, 4 insertions(+), 51 deletions(-)

diff --git a/docker/docker-myheats-nginx/.env b/docker/docker-myheats-nginx/.env @@ -1,48 +0,0 @@ -############ -# Frontend # -############ - -# Application window title -VITE_APP_DOC_TITLE='My Heats' -# Cookie TTL in seconds (session ttl in the admin/judges frontend), 60m -VITE_SESSION_TTL=3600 -# Full URI to backend http API -VITE_API_URI=http://myheats-api -# Backend API http port -VITE_API_PORT=8000 -# Full URI to backend websocket API -VITE_WS_URI=ws://myheats-api -# Backend API websocket port -VITE_WS_PORT=8000 -# Locale for frontend date formatting -VITE_LOCALE=en-US - -########### -# Backend # -########### - -API_REDIRECT_URI=http://myheats-frontend/authverify -# Backend API CORS allowed origins -API_CORS_ALLOW_ORIGIN=http://myheats-frontend -# JWT secret for magic links (`openssl rand -base64 48`) -API_JWT_SECRET= -# JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m -API_JWT_TTL=3600 - -# SMTP settings for sending magic links -SMTP_HOST= -# upgrade later with STARTTLS -SMTP_STARTTLS= -SMTP_PORT= -SMTP_USER= -SMTP_FROM= -SMTP_PASSWORD= - -# PostgreSQL environment variables -# https://github.com/porsager/postgres?tab=readme-ov-file#environmental-variables -# PGHOST, PGPORT, PGDATABASE, PGUSERNAME, PGPASSWORD, etc. -PGHOST=myheats-db -PGPORT=5432 -PGDATABASE=postgres -PGUSERNAME=postgres -PGPASSWORD=example diff --git a/docker/docker-myheats-nginx/Dockerfile b/docker/docker-myheats-nginx/Dockerfile @@ -1,11 +1,12 @@ FROM docker.io/node:18-alpine AS builder -# Read args from build command -ARG VITE_APP_DOC_TITLE='My Heats' # use NODE_ENV=prod to exclude the `devDependencies` (e..g, vite) # we require `vite` command in `npm run build` below ARG NODE_ENV=dev -ARG VITE_SESSION_TTL=3600 + +# Read args from build command +ARG VITE_APP_DOC_TITLE='My Heats' +ARG VITE_SESSION_TTL=259200 #72h ARG VITE_API_URI=https://api-myheats-demo.p0c.ch ARG VITE_API_PORT=443 ARG VITE_WS_URI=wss://api-myheats-demo.p0c.ch