A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
Find a file
2022-06-20 17:09:52 -07:00
.github/workflows fix(actions): arm -> arm64 2022-03-14 20:22:39 -07:00
.yarn chore(deps): update stuff 2022-06-16 14:22:26 -07:00
prisma fix(api): improve ratelimits 2022-06-20 10:49:24 -07:00
public refactor(assets): update assets to v3 2021-09-04 14:42:38 -07:00
scripts feat(v3.4.0): switch from Material-UI to Mantine! (#127) 2022-02-26 17:19:02 -08:00
src refactor(server): clean up server code 2022-06-20 17:09:52 -07:00
.dockerignore feat: use yarn v3 (#136) 2022-06-06 16:38:15 -07:00
.eslintrc.json feat(v3.3.1): bug fixes and new features 2022-02-19 20:17:02 -08:00
.gitignore feat: use yarn v3 (#136) 2022-06-06 16:38:15 -07:00
.yarnrc.yml chore(deps): update stuff 2022-06-16 14:22:26 -07:00
config.example.toml fix(config): extention -> extension 2022-06-19 16:44:55 -07:00
docker-compose.arm.yml Merge branch 'trunk' of github.com:diced/zipline into trunk 2022-06-04 22:05:26 -07:00
docker-compose.dev.yml fix(docker): add restart policy for postgres 2022-03-26 20:37:02 +00:00
docker-compose.yml fix(docker): add restart policy for postgres 2022-03-26 20:37:02 +00:00
Dockerfile feat: use yarn v3 (#136) 2022-06-06 16:38:15 -07:00
Dockerfile-arm feat: use yarn v3 (#136) 2022-06-06 16:38:15 -07:00
esbuild.config.js refactor(server): clean up server code 2022-06-20 17:09:52 -07:00
LICENSE feat(v3.4.1): datasource api, for S3 functionality 2022-03-02 22:04:56 -08:00
next-env.d.ts feat(v3.3): ctrl+v to upload image 2022-01-03 19:00:20 -08:00
next.config.js feat(v3.4.5): exporting images and more stuff 2022-06-19 17:46:20 -07:00
package.json refactor: clean up datasource stuff 2022-06-20 10:25:22 -07:00
README.md refactor(readme): more info 2022-06-20 15:07:15 -07:00
SECURITY.md feat(v3.4.4): fix many bugs and password protected uploads 2022-06-04 22:05:08 -07:00
tsconfig.json fix(api): password protected images wont show up on root 2022-06-17 15:35:29 -07:00
yarn.lock chore(deps): update stuff 2022-06-16 14:22:26 -07:00
zip-env.d.ts refactor: clean up datasource stuff 2022-06-20 10:25:22 -07:00

Zipline is a ShareX/file upload server that is easy to use, packed with features and can be setup in one command!

Build Stars Version GitHub last commit (branch) Discord

Features

  • Configurable
  • Fast
  • Built with Next.js & React
  • Token protected uploading
  • Image uploading
  • Password Protected Uploads
  • URL shortening
  • Text uploading
  • URL Formats (uuid, dates, random alphanumeric, original name, zws)
  • Discord embeds (OG metadata)
  • Gallery viewer, and multiple file format support
  • Code highlighting
  • Easy setup instructions on docs (One command install docker-compose up -d)

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.

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, please include the following:

  • 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 an issue on GitHub, please include the following:

  • Breif explanation of the feature in the title (very breif please)
  • How it would work (detailed, but optional)

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.