descriptionSmall temp redis-based pastebin server.
last changeFri, 16 Apr 2021 17:25:09 +0000 (19:25 +0200)


Small temp redis-based pastebin server.

Table of contents


This is a daemon that is meant to run behind a HTTP reverse proxy such as Caddy, Lighttpd, or Haproxy.

You can use whichever RP you want, though.

You’ll need a daemon manager, such as systemd or supervisord, to keep it alive in a reliable way.

You’ll also need a redis server, in which to store temporary pastes.


$ paste -h
Usage of ./paste:
  -config string
        Path to directory containing the configuration file (default ".")

By default, paste is configured to run in a simple way, without any required configuration.

If you have a custom configuration store you want to use, you can use the CLI argument -config to provide a custom directory in which paste can find a paste.<ext> configuration file.



By default, Paste uses the viper configuration library, thus supporting every configuration format viper supports.

However, I’d recommend going for TOML, a pretty simple, but strict, clear, and well-designed, configuration format.

The following configuration variables are available.

You should put the configuration file inside the process' working directory, or provide a path to the folder containing the configuration file using the associated flag.

You can also provide configurations through the environment.

Since the environment keys are case-insensitive, Http.Host is the exact same as HTTP.HOST.

The loading order is:

An example configuration can be found below.

Configuration example

Default values are kept for Redis.Password and Redis.Database.

The host is configured in a TOML file, put in the PWD.

# paste.toml
host = ""

The Redis remote server address is configured through the environment.


Prometheus stats

Paste (since v2.0.0) comes with built-in support for Prometheus stats.

The following stats are available.

2021-04-16 Dianeupdated repo link master
2020-06-21 DianeAdded favicon
2020-06-21 Dianeremoved server-side syntaxic coloration, wontfix
2020-06-21 DianeUniformized error pages
2020-06-21 Dianefixed form error styling
2020-06-21 DianeAdded text trimming
2020-06-21 Dianefinished changing routing
2020-06-21 DianeIntegrated main templates and started designing new...
2020-06-20 DianeCleaned a bit, uniformized handlers
2019-12-12 ArtemisMerge branch 'feature/go-refactor' into 'master'
2019-12-12 ArtemisDocumented new release
2019-12-12 ArtemisIntegrated new search bar design for view mode toggle
2019-12-03 ArtemisIntegrated markdown rendering
2019-12-02 ArtemisFinished stylizing generic error page
2019-12-02 ArtemisDocumented unit used for memory usage check
2019-12-02 ArtemisFixed error handling
3 months ago master