Delete fireshare (ct) after migration to ProxmoxVE (#1743)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
628989c273
commit
1971f32fb3
@@ -1,74 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Slaviša Arežina (tremor021)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/ShaneIsrael/fireshare
|
|
||||||
|
|
||||||
APP="Fireshare"
|
|
||||||
var_tags="${var_tags:-sharing;video}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-2048}"
|
|
||||||
var_disk="${var_disk:-10}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
if [[ ! -d /opt/fireshare ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "fireshare" "ShaneIsrael/fireshare"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop fireshare
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
mv /opt/fireshare/fireshare.env /opt
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
|
|
||||||
mv /opt/fireshare.env /opt/fireshare
|
|
||||||
rm -f /usr/local/bin/fireshare
|
|
||||||
|
|
||||||
msg_info "Updating Fireshare"
|
|
||||||
cd /opt/fireshare
|
|
||||||
$STD uv venv --clear
|
|
||||||
$STD .venv/bin/python -m ensurepip --upgrade
|
|
||||||
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
|
||||||
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
|
||||||
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
|
||||||
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
|
||||||
export DATA_DIRECTORY=/opt/fireshare-data
|
|
||||||
export IMAGE_DIRECTORY=/opt/fireshare-images
|
|
||||||
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
|
||||||
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
|
||||||
$STD uv run flask db upgrade
|
|
||||||
msg_ok "Ran Database Migrations"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start fireshare
|
|
||||||
msg_ok "Started Service"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
fi
|
|
||||||
cleanup_lxc
|
|
||||||
|
|
||||||
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 "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
_______ __
|
|
||||||
/ ____(_)_______ _____/ /_ ____ _________
|
|
||||||
/ /_ / / ___/ _ \/ ___/ __ \/ __ `/ ___/ _ \
|
|
||||||
/ __/ / / / / __(__ ) / / / /_/ / / / __/
|
|
||||||
/_/ /_/_/ \___/____/_/ /_/\__,_/_/ \___/
|
|
||||||
|
|
||||||
@@ -1,174 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Slaviša Arežina (tremor021)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/ShaneIsrael/fireshare
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
setup_hwaccel
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
git \
|
|
||||||
build-essential \
|
|
||||||
cmake \
|
|
||||||
pkg-config \
|
|
||||||
yasm \
|
|
||||||
nasm \
|
|
||||||
libx264-dev \
|
|
||||||
libx265-dev \
|
|
||||||
libvpx-dev \
|
|
||||||
libaom-dev \
|
|
||||||
libopus-dev \
|
|
||||||
libvorbis-dev \
|
|
||||||
libass-dev \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libmp3lame-dev \
|
|
||||||
nginx-extras \
|
|
||||||
supervisor \
|
|
||||||
libldap2-dev \
|
|
||||||
libsasl2-dev \
|
|
||||||
libssl-dev \
|
|
||||||
libffi-dev \
|
|
||||||
libc-dev
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
NODE_VERSION=24 setup_nodejs
|
|
||||||
PYTHON_VERSION=3.14 setup_uv
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
|
|
||||||
|
|
||||||
msg_info "Compiling SVT-AV1 (Patience)"
|
|
||||||
cd /tmp
|
|
||||||
$STD git clone --depth 1 --branch v1.8.0 https://gitlab.com/AOMediaCodec/SVT-AV1.git
|
|
||||||
cd SVT-AV1/Build
|
|
||||||
$STD cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
|
|
||||||
$STD make -j$(nproc)
|
|
||||||
$STD make install
|
|
||||||
msg_ok "Compiled SVT-AV1"
|
|
||||||
|
|
||||||
msg_info "Installing NVDEC headers"
|
|
||||||
cd /tmp
|
|
||||||
$STD git clone --depth 1 --branch n12.1.14.0 https://github.com/FFmpeg/nv-codec-headers.git
|
|
||||||
cd nv-codec-headers
|
|
||||||
$STD make install
|
|
||||||
$STD ldconfig
|
|
||||||
msg_ok "Installed NVDEC headers"
|
|
||||||
|
|
||||||
msg_info "Compiling ffmpeg (Patience)"
|
|
||||||
cd /tmp
|
|
||||||
curl -fsSL https://ffmpeg.org/releases/ffmpeg-6.1.tar.xz -o "ffmpeg-6.1.tar.xz"
|
|
||||||
$STD tar -xf ffmpeg-6.1.tar.xz
|
|
||||||
cd ffmpeg-6.1
|
|
||||||
$STD ./configure \
|
|
||||||
--prefix=/usr/local \
|
|
||||||
--enable-gpl \
|
|
||||||
--enable-version3 \
|
|
||||||
--enable-nonfree \
|
|
||||||
--enable-ffnvcodec \
|
|
||||||
--enable-libx264 \
|
|
||||||
--enable-libx265 \
|
|
||||||
--enable-libvpx \
|
|
||||||
--enable-libaom \
|
|
||||||
--enable-libopus \
|
|
||||||
--enable-libvorbis \
|
|
||||||
--enable-libmp3lame \
|
|
||||||
--enable-libass \
|
|
||||||
--enable-libfreetype \
|
|
||||||
--enable-libsvtav1 \
|
|
||||||
--disable-debug \
|
|
||||||
--disable-doc
|
|
||||||
$STD make -j$(nproc)
|
|
||||||
$STD make install
|
|
||||||
$STD ldconfig
|
|
||||||
msg_ok "Compiled ffmpeg"
|
|
||||||
|
|
||||||
msg_info "Configuring Fireshare (Patience)"
|
|
||||||
ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
|
|
||||||
SECRET=$(openssl rand -base64 48)
|
|
||||||
mkdir -p /opt/fireshare-{data,videos,images,processed}
|
|
||||||
cd /opt/fireshare
|
|
||||||
$STD uv venv
|
|
||||||
$STD .venv/bin/python -m ensurepip --upgrade
|
|
||||||
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
|
|
||||||
ln -sf /usr/local/bin/ffmpeg /usr/bin/ffmpeg
|
|
||||||
ln -sf /usr/local/bin/ffprobe /usr/bin/ffprobe
|
|
||||||
echo "/usr/local/lib" >/etc/ld.so.conf.d/usr-local.conf
|
|
||||||
echo "/usr/local/cuda/lib64" >>/etc/ld.so.conf.d/usr-local.conf
|
|
||||||
echo "/usr/local/nvidia/lib" >>/etc/ld.so.conf.d/nvidia.conf
|
|
||||||
echo "/usr/local/nvidia/lib64" >>/etc/ld.so.conf.d/nvidia.conf
|
|
||||||
ldconfig
|
|
||||||
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
|
|
||||||
cp .venv/bin/fireshare /usr/local/bin/fireshare
|
|
||||||
export FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
|
||||||
export DATA_DIRECTORY=/opt/fireshare-data
|
|
||||||
export IMAGE_DIRECTORY=/opt/fireshare-images
|
|
||||||
export VIDEO_DIRECTORY=/opt/fireshare-videos
|
|
||||||
export PROCESSED_DIRECTORY=/opt/fireshare-processed
|
|
||||||
$STD uv run flask db upgrade
|
|
||||||
|
|
||||||
cat <<EOF >/opt/fireshare/fireshare.env
|
|
||||||
FLASK_APP="/opt/fireshare/app/server/fireshare:create_app()"
|
|
||||||
DOMAIN=
|
|
||||||
ENVIRONMENT=production
|
|
||||||
DATA_DIRECTORY=/opt/fireshare-data
|
|
||||||
IMAGE_DIRECTORY=/opt/fireshare-images
|
|
||||||
VIDEO_DIRECTORY=/opt/fireshare-videos
|
|
||||||
PROCESSED_DIRECTORY=/opt/fireshare-processed
|
|
||||||
TEMPLATE_PATH=/opt/fireshare/app/server/fireshare/templates
|
|
||||||
SECRET_KEY=${SECRET}
|
|
||||||
ADMIN_PASSWORD=${ADMIN_PASSWORD}
|
|
||||||
TZ=UTC
|
|
||||||
LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/lib:/usr/local/cuda/lib64:\$LD_LIBRARY_PATH
|
|
||||||
PATH=/usr/local/bin:$PATH
|
|
||||||
ENABLE_TRANSCODING=
|
|
||||||
TRANSCODE_GPU=
|
|
||||||
NVIDIA_DRIVER_CAPABILITIES=
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cd /opt/fireshare/app/client
|
|
||||||
$STD npm install
|
|
||||||
$STD npm run build
|
|
||||||
systemctl stop nginx
|
|
||||||
cp /opt/fireshare/app/nginx/prod.conf /etc/nginx/nginx.conf
|
|
||||||
sed -i 's|root /processed/|root /opt/fireshare-processed/|g' /etc/nginx/nginx.conf
|
|
||||||
sed -i 's/^user[[:space:]]\+nginx;/user root;/' /etc/nginx/nginx.conf
|
|
||||||
sed -i 's|root[[:space:]]\+/app/build;|root /opt/fireshare/app/client/build;|' /etc/nginx/nginx.conf
|
|
||||||
systemctl start nginx
|
|
||||||
|
|
||||||
cat <<EOF >~/fireshare.creds
|
|
||||||
Fireshare Admin Credentials
|
|
||||||
========================
|
|
||||||
Username: admin
|
|
||||||
Password: ${ADMIN_PASSWORD}
|
|
||||||
EOF
|
|
||||||
msg_ok "Configured Fireshare"
|
|
||||||
|
|
||||||
msg_info "Creating services"
|
|
||||||
cat <<EOF >/etc/systemd/system/fireshare.service
|
|
||||||
[Unit]
|
|
||||||
Description=Fireshare Service
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
WorkingDirectory=/opt/fireshare/app/server
|
|
||||||
ExecStart=/opt/fireshare/.venv/bin/gunicorn --bind=127.0.0.1:5000 "fireshare:create_app(init_schedule=True)" --workers 3 --threads 3 --preload
|
|
||||||
Restart=always
|
|
||||||
EnvironmentFile=/opt/fireshare/fireshare.env
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now fireshare
|
|
||||||
msg_ok "Created services"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "fireshare",
|
|
||||||
"slug": "fireshare",
|
|
||||||
"categories": [
|
|
||||||
13
|
|
||||||
],
|
|
||||||
"date_created": "2026-02-21",
|
|
||||||
"type": "ct",
|
|
||||||
"updateable": true,
|
|
||||||
"privileged": false,
|
|
||||||
"interface_port": 80,
|
|
||||||
"documentation": "https://github.com/ShaneIsrael/fireshare/blob/develop/README.md",
|
|
||||||
"website": "https://fireshare.net/",
|
|
||||||
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/fireshare.webp",
|
|
||||||
"description": "Fireshare is a self-hosted app that lets you share videos — particularly gaming clips — via unique links. You upload videos to a folder, and the app generates shareable URLs for each one. It's designed as a lightweight alternative to services like Medal or YouTube for people who want full control over their content without relying on third-party platforms.",
|
|
||||||
"install_methods": [
|
|
||||||
{
|
|
||||||
"type": "default",
|
|
||||||
"script": "ct/fireshare.sh",
|
|
||||||
"config_path": "/opt/fireshare/fireshare.env",
|
|
||||||
"resources": {
|
|
||||||
"cpu": 2,
|
|
||||||
"ram": 2048,
|
|
||||||
"hdd": 10,
|
|
||||||
"os": "Debian",
|
|
||||||
"version": "13"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"default_credentials": {
|
|
||||||
"username": null,
|
|
||||||
"password": null
|
|
||||||
},
|
|
||||||
"notes": [
|
|
||||||
{
|
|
||||||
"text": "Type `cat ~/fireshare.creds` to get admin username and password.",
|
|
||||||
"type": "info"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text": "To enable GPU transcoding, you need to set proper variable in `/opt/fireshare/fireshare.env`.",
|
|
||||||
"type": "info"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"text": "The installation is compiling `ffmpeg`, `SVT-AV1` and NVIDIA headers from source, this may take a while, depending on your host speed. If possible, increase CPU cores allocated to the LXC container.",
|
|
||||||
"type": "warning"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user