mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-12-02 17:52:14 +03:00
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://.
11 lines
376 B
Bash
Executable File
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"
|