Compare commits

..
Author SHA1 Message Date
Rögl-Brunner Michel 2807f7fa89 Kan: build and run the API service
Kan v0.8.0 split the app into apps/web and apps/api. The web app proxies
all API and auth calls to a separate API process on port 4000, which the
script neither built nor started, so sign-up failed with 502.

- Bundle the API with apps/api/build.mjs and run it as kan-api.service
- Order kan.service after kan-api.service
- Update: build the API, stop/start both services, and create the API
  service on existing installs
- Use TRELLO_APP_SECRET, the name upstream reads
2026-11-30 13:07:59 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] efda411789 Update CHANGELOG.md (#19203)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 09:15:45 +00:00
CanbiZ (MickLesk) cbe76cfc80 Authelia: drop the base_settings call before variables (#19180)
It ran before the app's name and the next free ID were known. Proxmox VE
let that pass; on Incus, where unset variables already end the run, the
script stopped right after its banner with "NEXTID: unbound variable".
install_script calls base_settings itself.
2026-11-30 10:15:15 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 9495a57ddc Update CHANGELOG.md (#19202)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 08:39:21 +00:00
github-actions[bot] 3cc7e2554c koillection: bump PHP from 8.5 to 8.6 (#19200)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-30 09:38:51 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 868e7d2319 Update CHANGELOG.md (#19199)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 08:07:38 +00:00
github-actions[bot] f4a79945ab nocobase: bump Node.js from 22 to 24 (#19194)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-30 09:07:14 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] be9aa0c75f Update CHANGELOG.md (#19198)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-30 07:47:02 +00:00
github-actions[bot] 1b652c3d8c formbricks: bump Node.js from 24 to 26 (#19193)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-30 08:46:35 +01:00
8 changed files with 81 additions and 17 deletions

No files matched your search

+11
View File
@@ -590,6 +590,17 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-11-30
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Authelia: drop the base_settings call before variables [@MickLesk](https://github.com/MickLesk) ([#19180](https://github.com/community-scripts/ProxmoxVE/pull/19180))
- koillection: bump PHP from 8.5 to 8.6 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19200](https://github.com/community-scripts/ProxmoxVE/pull/19200))
- nocobase: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19194](https://github.com/community-scripts/ProxmoxVE/pull/19194))
- formbricks: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#19193](https://github.com/community-scripts/ProxmoxVE/pull/19193))
## 2026-11-29
### 🆕 New Scripts
-2
View File
@@ -17,8 +17,6 @@ var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
base_settings
variables
color
catch_errors
+38 -6
View File
@@ -31,12 +31,41 @@ function update_script() {
exit
fi
if [[ ! -f /etc/systemd/system/kan-api.service ]]; then
msg_info "Creating API Service"
cat <<EOF >/etc/systemd/system/kan-api.service
[Unit]
Description=Kan API
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/kan/apps/api/dist
EnvironmentFile=/opt/kan/.env
ExecStart=/usr/bin/node main.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
if [[ -f /opt/kan/apps/api/build.mjs ]]; then
cd /opt/kan/apps/api
$STD node build.mjs
systemctl enable -q --now kan-api
fi
msg_ok "Created API Service"
fi
if check_for_gh_tag "kan" "kanbn/kan"; then
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
msg_info "Stopping Service"
systemctl stop kan
msg_ok "Stopped Service"
msg_info "Stopping Services"
systemctl stop kan kan-api
msg_ok "Stopped Services"
create_backup /opt/kan/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest"
@@ -50,6 +79,8 @@ function update_script() {
export CI=true
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
$STD pnpm build --filter=@kan/web
cd /opt/kan/apps/api
$STD node build.mjs
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
msg_ok "Built Application"
@@ -64,9 +95,10 @@ function update_script() {
$STD pnpm exec drizzle-kit migrate
msg_ok "Ran Database Migrations"
msg_info "Starting Service"
msg_info "Starting Services"
systemctl enable -q --now kan-api
systemctl start kan
msg_ok "Started Service"
msg_ok "Started Services"
msg_ok "Updated successfully!"
fi
exit
+1 -1
View File
@@ -34,7 +34,7 @@ function update_script() {
systemctl stop apache2
msg_ok "Stopped Service"
PHP_VERSION="8.5" PHP_APACHE="YES" setup_php
PHP_VERSION="8.6" PHP_APACHE="YES" setup_php
setup_composer
msg_info "Creating a backup"
+1 -1
View File
@@ -45,7 +45,7 @@ function update_script() {
exit
fi
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
msg_info "Stopping NocoBase"
systemctl stop nocobase
+28 -5
View File
@@ -34,9 +34,11 @@ BETTER_AUTH_TRUSTED_ORIGINS=http://${LOCAL_IP}:3000
POSTGRES_URL=postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}
NEXT_PUBLIC_ALLOW_CREDENTIALS=true
TRELLO_APP_API_KEY=
TRELLO_APP_API_SECRET=
TRELLO_APP_SECRET=
HOSTNAME=0.0.0.0
PORT=3000
API_PORT=4000
KAN_API_URL=http://127.0.0.1:4000
NODE_ENV=production
EOF
msg_ok "Configured Application"
@@ -49,6 +51,8 @@ $STD pnpm install --ignore-scripts --prod=false
export CI=true
find /opt/kan/packages /opt/kan/apps -name 'tsconfig.json' -exec sed -i 's|"@kan/tsconfig/|"../../tooling/typescript/|g' {} +
$STD pnpm build --filter=@kan/web
cd /opt/kan/apps/api
$STD node build.mjs
unset NEXT_PUBLIC_USE_STANDALONE_OUTPUT CI
msg_ok "Built Application"
@@ -63,12 +67,31 @@ cd /opt/kan/packages/db
POSTGRES_URL="postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}" $STD pnpm exec drizzle-kit migrate
msg_ok "Ran Database Migrations"
msg_info "Creating Service"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/kan-api.service
[Unit]
Description=Kan API
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/kan/apps/api/dist
EnvironmentFile=/opt/kan/.env
ExecStart=/usr/bin/node main.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/kan.service
[Unit]
Description=Kan Board
After=network.target postgresql.service
After=network.target postgresql.service kan-api.service
Requires=postgresql.service
Wants=kan-api.service
[Service]
Type=simple
@@ -82,8 +105,8 @@ RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now kan
msg_ok "Created Service"
systemctl enable -q --now kan-api kan
msg_ok "Created Services"
motd_ssh
customize
+1 -1
View File
@@ -15,7 +15,7 @@ update_os
NODE_VERSION="26" NODE_MODULE="yarn" setup_nodejs
PG_VERSION="16" setup_postgresql
PHP_VERSION="8.5" PHP_APACHE="YES" setup_php
PHP_VERSION="8.6" PHP_APACHE="YES" setup_php
setup_composer
PG_DB_NAME="koillection" PG_DB_USER="koillection" setup_postgresql_db
+1 -1
View File
@@ -13,7 +13,7 @@ setting_up_container
network_check
update_os
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
PG_VERSION="17" setup_postgresql
PG_DB_NAME="nocobase" PG_DB_USER="nocobase" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db