diff --git a/frontend/public/json/zipline.json b/frontend/public/json/zipline.json index 1e90e9522..a6c9fe221 100644 --- a/frontend/public/json/zipline.json +++ b/frontend/public/json/zipline.json @@ -11,7 +11,7 @@ "interface_port": 3000, "documentation": "https://zipline.diced.sh/docs/get-started", "website": "https://zipline.diced.sh/", - "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@master/webp/zipline.webp", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/zipline.webp", "config_path": "/opt/zipline/.env", "description": "Zipline is a file-sharing and URL-shortening server designed for easy setup and extensive features. It allows users to upload files, organize them into folders, create shortened URLs, and manage uploads through a user-friendly dashboard. Additional features include image compression, video thumbnails, password protection, 2FA, OAuth2 registration, and API access for custom control. It supports integrations with platforms like Discord.", "install_methods": [ diff --git a/install/zipline-install.sh b/install/zipline-install.sh index 177d20bf3..3eb0117ae 100644 --- a/install/zipline-install.sh +++ b/install/zipline-install.sh @@ -16,31 +16,15 @@ update_os NODE_VERSION="22" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" setup_postgresql +PG_DB_NAME="ziplinedb" PG_DB_USER="zipline" setup_postgresql_db fetch_and_deploy_gh_release "zipline" "diced/zipline" "tarball" - -msg_info "Setting up PostgreSQL" -DB_NAME=ziplinedb -DB_USER=zipline -DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)" SECRET_KEY="$(openssl rand -base64 42 | tr -dc 'a-zA-Z0-9')" -$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';" -$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;" -$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';" -$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';" -$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'" -{ - echo "Zipline-Credentials" - echo "Zipline Database User: $DB_USER" - echo "Zipline Database Password: $DB_PASS" - echo "Zipline Database Name: $DB_NAME" - echo "Zipline Secret Key: $SECRET_KEY" -} >>~/zipline.creds -msg_ok "Set up PostgreSQL" +echo "Zipline Secret Key: ${SECRET_KEY}" >>~/zipline.creds msg_info "Installing Zipline (Patience)" cd /opt/zipline || exit cat </opt/zipline/.env -DATABASE_URL=postgres://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME +DATABASE_URL=postgres://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME CORE_SECRET=$SECRET_KEY CORE_HOSTNAME=0.0.0.0 CORE_PORT=3000