1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-15 03:50:11 +01:00
A self-hosted file sharing platform that combines lightness and beauty, perfect for seamless and efficient file sharing.
Go to file
2024-07-22 13:36:41 +02:00
.github docs: add Discord to issue page 2024-05-24 09:29:18 +02:00
backend feat(auth): Add role-based access management from OpenID Connect (#535) 2024-07-17 23:25:42 +02:00
docs docs: add review by "No Solo Hacking" to the Spanish README (#356) 2023-12-15 07:27:01 +01:00
frontend chore: resolve uncomplete merge conflict 2024-07-22 13:36:41 +02:00
.dockerignore fix: my shares doesn't make an api request 2022-10-14 11:29:54 +02:00
.gitignore feat: add env variables for port, database url and data dir 2023-05-05 11:37:02 +02:00
Caddyfile fix: replace Nginx with Caddy to fix "premature close" error while downloading larger files 2024-02-29 14:41:45 +01:00
CHANGELOG.md release: 0.27.0 2024-07-11 21:57:37 +02:00
CONTRIBUTING.md docs: move translated docs in docs folder 2023-04-02 18:53:54 +02:00
crowdin.yml chore(translations): remove Thai 2023-07-31 08:56:22 +02:00
docker-compose-dev.yml chore: remove obsolete version from docker compose 2024-07-17 23:26:57 +02:00
docker-compose.yml chore: remove obsolete version from docker compose 2024-07-17 23:26:57 +02:00
Dockerfile fix: replace Nginx with Caddy to fix "premature close" error while downloading larger files 2024-02-29 14:41:45 +01:00
LICENSE Create LICENSE 2022-04-26 08:15:49 +02:00
package-lock.json release: 0.27.0 2024-07-11 21:57:37 +02:00
package.json release: 0.27.0 2024-07-11 21:57:37 +02:00
README.md docs: update Discord link 2024-05-24 08:09:16 +02:00
SECURITY.md Create SECURITY.md 2022-12-12 11:11:28 +01:00


Pingvin Share

Read this in another language: Spanish, English, 简体中文, 日本語


Pingvin Share is self-hosted file sharing platform and an alternative for WeTransfer.

Features

  • Share files using a link
  • Unlimited file size (restricted only by disk space)
  • Set an expiration date for shares
  • Secure shares with visitor limits and passwords
  • Email recipients
  • Integration with ClamAV for security scans

🐧 Get to know Pingvin Share

⌨️ Setup

Note: Pingvin Share is in its early stages and may contain bugs.

  1. Download the docker-compose.yml file
  2. Run docker compose up -d

The website is now listening on http://localhost:3000, have fun with Pingvin Share 🐧!

Stand-alone Installation

Required tools:

  • Node.js >= 16
  • Git
  • pm2 for running Pingvin Share in the background
git clone https://github.com/stonith404/pingvin-share
cd pingvin-share

# Checkout the latest version
git fetch --tags && git checkout $(git describe --tags `git rev-list --tags --max-count=1`)

# Start the backend
cd backend
npm install
npm run build
pm2 start --name="pingvin-share-backend" npm -- run prod

# Start the frontend
cd ../frontend
npm install
npm run build
API_URL=http://localhost:8080 # Set the URL of the backend, default: http://localhost:8080
pm2 start --name="pingvin-share-frontend" .next/standalone/server.js

Uploading Large Files: By default, Pingvin Share uses a built-in reverse proxy to reduce the installation steps. However, this reverse proxy is not optimized for uploading large files. If you wish to upload larger files, you can either use the Docker installation or set up your own reverse proxy. An example configuration for Caddy can be found in ./Caddyfile.

The website is now listening on http://localhost:3000, have fun with Pingvin Share 🐧!

Integrations

ClamAV (Docker only)

ClamAV is used to scan shares for malicious files and remove them if found.

  1. Add the ClamAV container to the Docker Compose stack (see docker-compose.yml) and start the container.
  2. Docker will wait for ClamAV to start before starting Pingvin Share. This may take a minute or two.
  3. The Pingvin Share logs should now log "ClamAV is active"

Please note that ClamAV needs a lot of ressources.

OAuth 2 Login

View the OAuth 2 guide for more information.

Additional resources

Upgrade to a new version

As Pingvin Share is in early stage, see the release notes for breaking changes before upgrading.

Docker

docker compose pull
docker compose up -d

Stand-alone

  1. Stop the running app

    pm2 stop pingvin-share-backend pingvin-share-frontend
    
  2. Repeat the steps from the installation guide except the git clone step.

    cd pingvin-share
    
    # Checkout the latest version
    git fetch --tags && git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
    
    # Start the backend
    cd backend
    npm install
    npm run build
    pm2 restart pingvin-share-backend
    
    # Start the frontend
    cd ../frontend
    npm install
    npm run build
    API_URL=http://localhost:8080 # Set the URL of the backend, default: http://localhost:8080
    pm2 restart pingvin-share-frontend
    

Configuration

You can customize Pingvin Share like changing your domain by going to the configuration page in your admin dashboard /admin/config.

Environment variables

For installation specific configuration, you can use environment variables. The following variables are available:

Backend
Variable Default Value Description
PORT 8080 The port on which the backend listens.
DATABASE_URL file:../data/pingvin-share.db?connection_limit=1 The URL of the SQLite database.
DATA_DIRECTORY ./data The directory where data is stored.
CLAMAV_HOST 127.0.0.1 The IP address of the ClamAV server.
CLAMAV_PORT 3310 The port number of the ClamAV server.
Frontend
Variable Default Value Description
PORT 3000 The port on which the frontend listens.
API_URL http://localhost:8080 The URL of the backend for the frontend.

🖤 Contribute

Translations

You can help to translate Pingvin Share into your language. On Crowdin you can easily translate Pingvin Share online.

Is your language not on Crowdin? Feel free to Request it.

Any issues while translating? Feel free to participate in the Localization discussion.

Project

You're very welcome to contribute to Pingvin Share! Please follow the contribution guide to get started.