Skip to content

JSPaste/Backend

Repository files navigation

Backend

Setup

Binary

  • Download the latest release and uncompress it to a new folder
  • Edit the .env.example file and rename it to .env
  • Run the binary...

Linux & macOS:

./server

Windows:

powershell -c ".\server.exe"

Container

  • Pull latest image and run the container:
docker pull ghcr.io/jspaste/backend:latest
docker run --env-file=.env -d -p 127.0.0.1:4000:4000 \
  ghcr.io/jspaste/backend:latest

Validate

Important

All artifacts and images originate from GitHub JSPaste/Backend repository, no other artifacts or images built and distributed outside that repository are considered secure nor trusted by the JSPaste team.

You can verify the integrity and origin of an artifact and/or image using the GitHub CLI or manually at JSPaste Attestations.

Artifacts are attested and can be verified using the following command:

gh attestation verify ./backend_latest_linux-amd64.tar.xz \
  --owner JSPaste

Since container version 2024.05.06-e105023, images are attested and can be verified using the following command:

gh attestation verify oci://ghcr.io/jspaste/backend:latest \
  --owner JSPaste

Development

See the CONTRIBUTING file for more details.

License

This project is licensed under the EUPL License. See the LICENSE file for more details.