ops: add deployment scripts and nginx/systemd configs
Scripts for installing and starting the app and nginx proxy. Includes systemd user service units and nginx configs for both user-mode 8443 and system-mode 443.
This commit is contained in:
12
scripts/start-kanban.sh
Executable file
12
scripts/start-kanban.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "${ROOT_DIR}"
|
||||
|
||||
export KANBAN_HOST="${KANBAN_HOST:-127.0.0.1}"
|
||||
export KANBAN_PORT="${KANBAN_PORT:-5180}"
|
||||
export KANBAN_AUTH_SECURE_COOKIE="${KANBAN_AUTH_SECURE_COOKIE:-1}"
|
||||
export KANBAN_REQUIRE_HTTPS="${KANBAN_REQUIRE_HTTPS:-1}"
|
||||
|
||||
exec npm start
|
||||
Reference in New Issue
Block a user