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

11 lines
376 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
APP_DIR="${APP_DATA_DIR:-$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")}"
DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}"
# Remove .gitignore file from data directories if they exist
[ -f "${DATA_ROOT}/app/.gitignore" ] && rm -f "${DATA_ROOT}/app/.gitignore"
[ -f "${DATA_ROOT}/db/.gitignore" ] && rm -f "${DATA_ROOT}/db/.gitignore"