Files
Nathan Fretz 5100f03689 Fix https sign-in for apps with trusted-origin lists
Trust https:// origins in apps with trusted-origin lists

umbrelOS 2.0 serves app ports over HTTPS too, but these apps only trusted
http:// origins, so CSRF or auth origin checks reject sign-ins and form
submissions when the app is opened with https://.
2026-11-12 11:21:53 +10:00

52 lines
1.8 KiB
YAML

version: '3.7'
services:
app_proxy:
environment:
APP_HOST: adventurelog_web_1
APP_PORT: 3000
PROXY_AUTH_ADD: "false"
web:
image: ghcr.io/seanmorley15/adventurelog-frontend:v0.13.1@sha256:568b1be1c42f456df066a8bb55be8ce0046b2c6fc96b1650db5d2162eb4f1ce9
restart: on-failure
environment:
PUBLIC_SERVER_URL: "http://adventurelogserver1:8000"
PROTOCOL_HEADER: "x-forwarded-proto"
HOST_HEADER: "x-forwarded-host"
BODY_SIZE_LIMIT: "Infinity"
depends_on:
- server
db:
image: ghcr.io/baosystems/postgis:15-3.5@sha256:ac619116c8ee81a386eb878956950d798b57c502985c12eb6e7be1598aa8d02f
restart: on-failure
environment:
POSTGRES_DB: database
POSTGRES_USER: adventure
POSTGRES_PASSWORD: adventure
volumes:
- ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data/
server:
image: ghcr.io/seanmorley15/adventurelog-backend:v0.13.1@sha256:8c45e21f95875ccd35a6e68f7da72504df9e837d6ee703379512cb8de6a67082
container_name: adventurelogserver1 # needs to be set for the frontend to be able to connect (underline not supported)
restart: on-failure
environment:
- PGHOST=adventurelog_db_1
- PGDATABASE=database
- PGUSER=adventure
- PGPASSWORD=adventure
- SECRET_KEY=adventure
- DJANGO_ADMIN_USERNAME=admin
- DJANGO_ADMIN_PASSWORD=admin
- DJANGO_ADMIN_EMAIL=admin@example.com
- PUBLIC_URL=http://${DEVICE_DOMAIN_NAME}:8016
- CSRF_TRUSTED_ORIGINS=http://${DEVICE_DOMAIN_NAME}:8015,https://${DEVICE_DOMAIN_NAME}:8015,http://${DEVICE_HOSTNAME}:8015,https://${DEVICE_HOSTNAME}:8015,${APP_ADVENTURELOG_LOCAL_URLS}
- DEBUG=False
- FRONTEND_URL=http://${DEVICE_DOMAIN_NAME}:8015
ports:
- '8016:80'
depends_on:
- db
volumes:
- ${APP_DATA_DIR}/data/app:/code/media/