- Move ERPNext API token from JS bundle to nginx proxy_set_header (token only lives on server, never in client code) - Switch ops + field apps from auth.targo.ca to id.gigafibre.ca SSO - Fix "Aucun contenu" showing on tickets that have comments but no description (check comments.length in v-if condition) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
# Targo Field — nginx container served at erp.gigafibre.ca/field/
|
|
# Deploy: docker compose -f docker-compose.yaml up -d
|
|
|
|
services:
|
|
field-frontend:
|
|
image: nginx:alpine
|
|
container_name: field-frontend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /opt/field-app:/usr/share/nginx/html:ro
|
|
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.field.rule=Host(`erp.gigafibre.ca`) && PathPrefix(`/field`)"
|
|
- "traefik.http.routers.field.entrypoints=web,websecure"
|
|
- "traefik.http.routers.field.middlewares=authentik-client@file,field-strip@docker"
|
|
- "traefik.http.routers.field.service=field"
|
|
- "traefik.http.routers.field.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.field.priority=200"
|
|
- "traefik.http.middlewares.field-strip.stripprefix.prefixes=/field"
|
|
- "traefik.http.middlewares.field-strip.stripprefix.forceSlash=false"
|
|
- "traefik.http.services.field.loadbalancer.server.port=80"
|
|
- "traefik.docker.network=proxy"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|