diff --git a/ct/floppy.sh b/ct/floppy.sh deleted file mode 100644 index 3b782e9799..0000000000 --- a/ct/floppy.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/DevScripts/main" -_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/DevScripts/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}" -var_testurl="${var_testurl:-https://github.com/community-scripts/DevScripts/issues/2591}" - -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}" diff --git a/install/floppy-install.sh b/install/floppy-install.sh deleted file mode 100644 index 27485fb5ba..0000000000 --- a/install/floppy-install.sh +++ /dev/null @@ -1,137 +0,0 @@ -#!/usr/bin/env bash - -# Copyright (c) 2021-2026 community-scripts ORG -# Author: MickLesk (CanbiZ) -# License: MIT | https://github.com/community-scripts/DevScripts/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 </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 </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 </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 </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 diff --git a/json/floppy.json b/json/floppy.json deleted file mode 100644 index 1ca51865c8..0000000000 --- a/json/floppy.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "Floppy", - "slug": "floppy", - "categories": [ - 13 - ], - "date_created": "2026-11-12", - "type": "ct", - "updateable": true, - "privileged": false, - "interface_port": 8000, - "documentation": "https://github.com/dannyvfilms/Floppy/wiki", - "website": "https://github.com/dannyvfilms/Floppy", - "repository": "https://github.com/dannyvfilms/Floppy", - "architectures": ["amd64"], - "platforms": ["pve"], - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/floppy.webp", - "description": "Floppy is a self-hosted media tracker and diary for movies, TV, anime, books, comics, manga, games, board games, music and podcasts, a private alternative to Trakt, Letterboxd and Goodreads. It keeps progress, ratings, lists, collections, a release calendar and yearly statistics, and fills in history from Plex, Jellyfin, Emby, Pocket Casts or Last.fm.", - "install_methods": [ - { - "type": "default", - "script": "ct/floppy.sh", - "config_path": "/opt/floppy_data/.env", - "resources": { - "cpu": 2, - "ram": 2048, - "hdd": 6, - "os": "Debian", - "version": "13" - } - } - ], - "default_credentials": { - "username": "admin", - "password": null - }, - "notes": [ - { - "text": "Sign in with DJANGO_SUPERUSER_USERNAME and DJANGO_SUPERUSER_PASSWORD from /opt/floppy_data/.env.", - "type": "info" - }, - { - "text": "Registration is closed. To let others sign up, set REGISTRATION=True in /opt/floppy_data/.env and run systemctl restart floppy.", - "type": "info" - }, - { - "text": "Movie, TV and anime search work out of the box. Game search needs your own IGDB (Twitch) client ID and secret under Settings > Metadata.", - "type": "info" - } - ], - "app_vars": [ - { - "name": "var_admin_user", - "label": "Admin Username", - "type": "text", - "default": "admin" - }, - { - "name": "var_admin_pass", - "label": "Admin Password", - "type": "password", - "secret": true, - "help": "Generated when left empty" - } - ] -}