A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
Find a file
2023-06-19 11:24:04 -07:00
.devcontainer fix: fine tune devcontainer (#329) 2023-03-21 18:01:02 -07:00
.github feat: new opt bug.yml (#411) 2023-05-22 15:36:53 -07:00
.vscode feat: prettier run (#200) 2022-10-19 19:43:01 -07:00
.yarn fix: optimize docker image 2023-01-26 15:58:22 -08:00
prisma feat: video thumbnails (#413) (#376) 2023-05-29 19:02:18 -07:00
public feat: gfycat url #322 2023-03-18 21:48:19 -07:00
src fix: excessive worker count (#425) 2023-06-19 11:24:04 -07:00
.dockerignore feat: use yarn v3 (#136) 2022-06-06 16:38:15 -07:00
.env.local.example feat: video thumbnails (#413) (#376) 2023-05-29 19:02:18 -07:00
.eslintignore refactor: new eslint changes 2023-03-21 17:53:22 -07:00
.eslintrc.json refactor: new eslint changes 2023-03-21 17:53:22 -07:00
.gitattributes fix: Follow proper linebreak style. (#191) 2022-10-16 20:10:52 -07:00
.gitignore feat: clear storage (#244) (#239) 2022-12-10 15:00:39 -08:00
.npmrc feat: multiple stuffs 2023-03-18 20:52:04 -07:00
.nvmrc fix: update node@18, fix views aggregation, force update stats 2022-10-29 10:52:35 -07:00
.prettierrc.json feat: prettier run (#200) 2022-10-19 19:43:01 -07:00
.yarnrc.yml fix: optimize docker image 2023-01-26 15:58:22 -08:00
CONTRIBUTING.md feat: Add check to prevent favorited files from being deleted (#369) 2023-04-12 16:59:30 -07:00
docker-compose.dev.yml fix: things (#401) 2023-05-10 22:39:08 -07:00
docker-compose.yml fix: things (#401) 2023-05-10 22:39:08 -07:00
docker-entrypoint.sh feat: use ENTRYPOINT in docker (#286) 2023-02-17 19:09:50 -08:00
Dockerfile feat: many things (#351) 2023-03-31 22:25:00 -07:00
LICENSE feat(v3.4.1): datasource api, for S3 functionality 2022-03-02 22:04:56 -08:00
mimes.json feat: prettier run (#200) 2022-10-19 19:43:01 -07:00
next-env.d.ts feat(v3.3): ctrl+v to upload image 2022-01-03 19:00:20 -08:00
next.config.js refactor: migrate to fastify 2022-12-07 19:21:26 -08:00
package.json feat: video thumbnails (#413) (#376) 2023-05-29 19:02:18 -07:00
README.md refactor: docker-compose -> docker compose 2023-03-19 16:48:08 -07:00
SECURITY.md feat: update deps & fix stuff 2022-12-10 14:19:53 -08:00
tsconfig.json feat: file size (#308) 2023-03-03 20:40:28 -08:00
tsup.config.ts feat: video thumbnails (#413) (#376) 2023-05-29 19:02:18 -07:00
yarn.lock fix: stuff (#423) 2023-06-18 19:28:20 -07:00

A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!

Stars Version GitHub last commit (branch) Discord

Build Docker Image (trunk) Docker Image (release)

Features

  • Configurable
  • Fast
  • Built with Next.js & React
  • Token protected uploading
  • Image uploading
  • Image compression
  • Password Protected Uploads
  • URL shortening
  • Text uploading
  • URL Formats (uuid, dates, random alphanumeric, original name, zws, gfycat -> animals adjectives)
  • Discord embeds (OG metadata)
  • Gallery viewer, and multiple file format support
  • Code highlighting
  • Fully customizable Discord webhook notifications
  • OAuth2 registration (Discord and GitHub)
  • Two-Factor authentication with Google Authenticator, Authy, etc (totp services).
  • User invites
  • File Chunking (for large files)
  • File deletion once it reaches a certain amount of views
  • Easy setup instructions on docs (One command install docker compose up -d)
View upstream documentation

The website below provides documentation for more up-to-date features with the upstream branch. The normal documentation is for the latest release and is not updated unless a new release is made.

https://trunk.zipline.diced.tech/

Screenshots (click)

View full album at imgur

Login Page Dashboard Files Page

Usage

Install & run with Docker

This section requires Docker and docker compose.

git clone https://github.com/diced/zipline
cd zipline

docker compose up -d

After installing

After installing, please edit the docker-compose.yml file and find the line that says SECRET=changethis and replace changethis with a random string. Ways you could generate the string could be from a password managers generator, or you could just slam your keyboard and hope for the best.

Building & running from source

This section requires nodejs, yarn or npm.

git clone https://github.com/diced/zipline
cd zipline

# npm install
yarn install
# npm run build
yarn build
# npm start
yarn start

NGINX Proxy

This section requires NGINX.

server {
  listen 80 default_server;
  client_max_body_size 100M;
  server_name <your domain (optional)>;
  location / {
    proxy_pass http://localhost:3000;
    proxy_set_header Host $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 $scheme;
  }
}

Website

The default port is 3000, once you have accessed it you can see a login screen. The default credentials are "administrator" and "password". Once you login please immediately change the details to something more secure. You can do this by clicking on the top right corner where it says "administrator" with a gear icon and clicking Manage Account.

ShareX (Windows)

This section requires ShareX.

After navigating to Zipline, click on the top right corner where it says your username and click Manage Account. Scroll down to see "ShareX Config", select the one you would prefer using. After this you can import the .sxcu into sharex. More information here

Flameshot (Linux)

This section requires Flameshot, jq, and xsel.

Wayland instructions

If using wayland you will need to have wl-clipboard installed, for the wl-copy command.

If you are not using GNOME/KDE/Qtile/Sway, and are using something like a wlroots-based compositor (ex. Hyprland, River, etc), you will need to set the XDG_CURRENT_DESKTOP environment variable to sway, which will just override it for this script. Adding export XDG_CURRENT_DESKTOP=sway to the start of the script will work.

After this, replace the xsel -ib with wl-copy in the script.

You can either use the script below, or generate one directly from Zipline (just like how you can generate a ShareX config). To upload files using flameshot we will use a script. Replace $TOKEN and $HOST with your own values, you probably know how to do this if you use linux.

DATE=$(date '+%h_%Y_%d_%I_%m_%S.png');
flameshot gui -r > ~/Pictures/$DATE;

curl -H "Content-Type: multipart/form-data" -H "authorization: $TOKEN" -F file=@$1 $HOST/api/upload | jq -r 'files[0].url' | xsel -ib

Contributing

Bug reports

Create an issue on GitHub and use the template, please include the following (if one of them is not applicable to the issue then it's not needed):

  • The steps to reproduce the bug
  • Logs of Zipline
  • The version of Zipline
  • Your OS & Browser including server OS
  • What you were expecting to see

Feature requests

Create a discussion on GitHub, please include the following:

  • Brief explanation of the feature in the title (very brief please)
  • How it would work (Be detailed!)

Pull Requests (contributions to the codebase)

Create a pull request on GitHub. If your PR does not pass the action checks, then please fix the errors. If your PR was submitted before a release, and I have pushed a new release, please make sure to update your PR to reflect any changes, usually this is handled by GitHub.