Compare commits

...
Author SHA1 Message Date
github-actions[bot] bc9e88c69f Update CHANGELOG.md 2026-11-27 10:46:29 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 63b807d9db Update CHANGELOG.md (#19098)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 10:46:11 +00:00
push-app-to-main[bot] 1a3ed497b5 Add floppy (ct) (#19099)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-27 11:46:02 +01:00
Owen Voke 3fde785ca4 Gramps Web: install AI chat dependencies (#19092) 2026-11-27 11:45:43 +01:00
5 changed files with 227 additions and 6 deletions

No files matched your search

+15 -4
View File
@@ -589,12 +589,22 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
## 2026-11-27
### 🆕 New Scripts
- Floppy [@MickLesk](https://github.com/MickLesk) ([#19099](https://github.com/community-scripts/ProxmoxVE/pull/19099))
### 🚀 Updated Scripts
- #### ✨ New Features
- Gramps Web: install AI chat dependencies [@owenvoke](https://github.com/owenvoke) ([#19092](https://github.com/community-scripts/ProxmoxVE/pull/19092))
### 💾 Core
- Protect a container once its install succeeded, not at creation [@MickLesk](https://github.com/MickLesk) ([core#311](https://github.com/community-scripts/core/pull/311))
- Refuse a static address without a gateway before pct create [@MickLesk](https://github.com/MickLesk) ([core#312](https://github.com/community-scripts/core/pull/312))
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
- Offer no DNS retry to a container without a connection out [@MickLesk](https://github.com/MickLesk) ([core#310](https://github.com/community-scripts/core/pull/310))
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
- Refuse a static address without a gateway before pct create [@MickLesk](https://github.com/MickLesk) ([core#312](https://github.com/community-scripts/core/pull/312))
- Protect a container once its install succeeded, not at creation [@MickLesk](https://github.com/MickLesk) ([core#311](https://github.com/community-scripts/core/pull/311))
### 🧰 Tools
@@ -604,7 +614,8 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
### 📚 Documentation
- github: add a weekly PHP version drift check [@MickLesk](https://github.com/MickLesk) ([#19094](https://github.com/community-scripts/ProxmoxVE/pull/19094))
- github: add a weekly Python version drift check [@MickLesk](https://github.com/MickLesk) ([#19095](https://github.com/community-scripts/ProxmoxVE/pull/19095))
- github: add a weekly PHP version drift check [@MickLesk](https://github.com/MickLesk) ([#19094](https://github.com/community-scripts/ProxmoxVE/pull/19094))
## 2026-11-26
+73
View File
@@ -0,0 +1,73 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/dannyvfilms/Floppy
APP="Floppy"
var_tags="${var_tags:-media;tracker;movies;anime}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-6}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
export var_admin_user="${var_admin_user:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/floppy ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "floppy" "dannyvfilms/Floppy"; then
msg_info "Stopping Floppy"
systemctl stop floppy-celery floppy
msg_ok "Stopped Floppy"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "floppy" "dannyvfilms/Floppy" "tarball"
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/floppy" setup_uv
msg_info "Updating Floppy"
cd /opt/floppy
$STD uv sync --locked --no-default-groups
sed -i "s/^VERSION=.*/VERSION=v$(cat ~/.floppy)/" /opt/floppy_data/.env
set -a
source /opt/floppy_data/.env
set +a
cd /opt/floppy/src
$STD /opt/floppy/.venv/bin/python manage.py migrate --noinput
$STD /opt/floppy/.venv/bin/python manage.py collectstatic --noinput
msg_ok "Updated Floppy"
msg_info "Starting Floppy"
systemctl start floppy floppy-celery
msg_ok "Started Floppy"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8000${CL}"
echo -e "${INFO}${YW}Admin credentials: /opt/floppy_data/.env${CL}"
+1 -1
View File
@@ -80,7 +80,7 @@ EOF
source /opt/gramps-web/venv/bin/activate
$STD uv pip install --no-cache-dir --upgrade pip setuptools wheel
$STD uv pip install --no-cache-dir gunicorn
$STD uv pip install --no-cache-dir /opt/gramps-web-api
$STD uv pip install --no-cache-dir "/opt/gramps-web-api[ai]"
msg_ok "Updated Gramps Web API"
msg_info "Applying Database Migration"
+137
View File
@@ -0,0 +1,137 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/dannyvfilms/Floppy
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
nginx \
redis-server
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "floppy" "dannyvfilms/Floppy" "tarball"
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/floppy" setup_uv
msg_info "Installing Python Dependencies"
cd /opt/floppy
$STD uv sync --locked --no-default-groups
msg_ok "Installed Python Dependencies"
var_admin_user="${var_admin_user:-admin}"
var_admin_pass="${var_admin_pass:-$(random_password 16)}"
msg_info "Configuring Floppy"
mkdir -p /opt/floppy_data/{db,backups,logs}
cat <<EOF >/opt/floppy_data/.env
SECRET=$(random_password 50)
DEBUG=False
ADMIN_ENABLED=False
DEMO_ACCOUNT_ENABLED=False
REGISTRATION=False
ALLOWED_HOSTS=*
TZ=$(cat /etc/timezone)
FLOPPY_DATA_DIR=/opt/floppy_data/db
BACKUP_DIR=/opt/floppy_data/backups
LOG_DIR=/opt/floppy_data/logs
REDIS_URL=redis://127.0.0.1:6379
VERSION=v$(cat ~/.floppy)
DJANGO_SUPERUSER_USERNAME=${var_admin_user}
DJANGO_SUPERUSER_PASSWORD=${var_admin_pass}
EOF
chmod 600 /opt/floppy_data/.env
msg_ok "Configured Floppy"
msg_info "Setting up Floppy Database (Patience)"
set -a
source /opt/floppy_data/.env
set +a
cd /opt/floppy/src
$STD /opt/floppy/.venv/bin/python manage.py migrate --noinput
$STD /opt/floppy/.venv/bin/python manage.py collectstatic --noinput
$STD /opt/floppy/.venv/bin/python manage.py createsuperuser --noinput --email "${var_admin_user}@localhost"
msg_ok "Set up Floppy Database"
msg_info "Configuring Nginx"
cat <<EOF >/etc/nginx/sites-available/floppy
server {
listen 8000;
server_name _;
client_max_body_size 512M;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host \$http_host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$http_x_forwarded_proto;
}
location /static/ {
alias /opt/floppy/src/staticfiles/;
expires 30d;
add_header Cache-Control "public";
}
}
EOF
nginx_enable_site "floppy"
msg_ok "Configured Nginx"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/floppy.service
[Unit]
Description=Floppy Web
After=network.target redis-server.service
Requires=redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/floppy/src
EnvironmentFile=/opt/floppy_data/.env
ExecStart=/opt/floppy/.venv/bin/gunicorn --config python:config.gunicorn config.wsgi:application
KillMode=mixed
TimeoutStopSec=30
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/floppy-celery.service
[Unit]
Description=Floppy Celery Worker
After=network.target redis-server.service floppy.service
Requires=redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/floppy/src
EnvironmentFile=/opt/floppy_data/.env
Environment=FLOPPY_PROCESS_ROLE=combined
ExecStart=/opt/floppy/.venv/bin/celery --app config worker --beat --scheduler django --queues celery,interactive,discover --loglevel INFO --without-mingle --without-gossip
KillMode=mixed
TimeoutStopSec=60
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now redis-server floppy floppy-celery
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+1 -1
View File
@@ -78,7 +78,7 @@ $STD uv venv -c -p python3.12 /opt/gramps-web/venv
source /opt/gramps-web/venv/bin/activate
$STD uv pip install --no-cache-dir --upgrade pip setuptools wheel
$STD uv pip install --no-cache-dir gunicorn
$STD uv pip install --no-cache-dir /opt/gramps-web-api
$STD uv pip install --no-cache-dir "/opt/gramps-web-api[ai]"
GRAMPS_VERSION=$(/opt/gramps-web/venv/bin/python3 -c "import gramps.version; print('%s%s' % (gramps.version.VERSION_TUPLE[0], gramps.version.VERSION_TUPLE[1]))" 2>/dev/null || echo "60")
GRAMPS_PLUGINS_DIR="/opt/gramps-web/data/gramps/gramps${GRAMPS_VERSION}/plugins"