Zipline (ShareX/file Upload Server)
Node.js and PostegreSQL
If you need help installing Node and psql then you can go read the tutorial on Umami. I also like creating another user for node, with lesser permissions for better security otherwise I use the root user for systems administration because I’d rather slit my wrists again than having to type my password and use sudo all the fucking time.
Preparing the database
1su -c "psql" - postgres
2
3CREATE ROLE zipline WITH LOGIN PASSWORD 'zipline';
4CREATE DATABASE zipline WITH OWNER zipline;
Who the fuck cares about the password, we’re hosting this locally anyway.
Now exit from this shell with ^C
.
Install Yarn
1npm install -g yarn
Install PM2 globally to daemonize node
1npm install -g pm2
Get the source code and install dependencies
1cd /var/www/
2git clone https://github.com/diced/zipline
3sudo chown node:node -R /var/www/zipline
4cd zipline
5su node
6yarn install
Editing the .env
1cp .env.local.example .env.local
2vim .env.local
You will have to edit a minimum of settings before building:
1CORE_SECRET="very random string here use KeePassXC or something"
2
3CORE_DATABASE_URL="postgres://zipline:zipline@localhost/zipline"
4CORE_PORT=3000
Now build the thing
1yarn build
2yarn start
Start the application with PM2
1pm2 start yarn --name zipline -- start
2pm2 save
3pm2 startup
The default username/password are administrator
:password
.
Reverse proxy
More boiler plate that I don’t want to rewrite!!!
I don’t want to write the same fucking shit again, you can go follow the tutorial for Umami it’s the same thing.
- Here: Reverse Proxy
Created on: Friday, 8 March 2024