Linux epoll based terminal pastebin https://unsha.re
This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Thorsten Schubert 64c89e9274
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build encountered an error
Bug fixes
2021-11-08 18:39:10 +01:00
contrib Bug fixes 2021-11-08 18:39:10 +01:00
include Bug fixes 2021-11-08 18:39:10 +01:00
src Bug fixes 2021-11-08 18:39:10 +01:00
.clang-format Bug fixes 2021-11-08 18:39:10 +01:00
.clang-tidy Drone CI 2021-10-22 20:21:57 +02:00
.drone.yml Bug fixes 2021-11-08 18:39:10 +01:00
.gitignore Use meson 2021-10-16 19:08:14 +02:00
conf.h.in Bug fixes 2021-11-08 18:39:10 +01:00
configure Bug fixes 2021-11-08 18:39:10 +01:00
LICENSE LICENSE, README and some refactoring 2021-10-12 10:17:25 +02:00
meson.build Bug fixes 2021-11-08 18:39:10 +01:00
meson_options.txt Bug fixes 2021-11-08 18:39:10 +01:00
README.md Rename to erased 2021-10-29 22:00:50 +02:00

Install

  • Prepare the build directory:

      ./configure release
    
  • Set configuration options:

      meson configure -Ddomain=example.org -Dpath=/my/path
    
  • For additional options see:

      meson configure build | grep -A12 Project
    
  • Build:

      ninja -v -C build
    
  • Install to /usr/local by default:

      sudo meson install -C build
    

Info

  • Working instance at https://unsha.re:

      meson configure -Dloglevel=3 -Dmax_size=8388608 -Dmax_age=90 -Dpath=/srv/p \
          -Ddomain=unsha.re -Db_pie=false -Db_staticpic=false -Db_lto_threads=1 \
          -Daddrs_pasted=78.47.159.47:9999,[2a01:4f8:c0c:4814::2]:9999 \
          -Daddrs_erased=78.47.159.47:10000,[2a01:4f8:c0c:4814::2]:10000
    
  • Recommended nft configuration for rate limiting:

      set set_tcpaste_meter_v4 {
              type ipv4_addr
              size 65535
              flags timeout, dynamic
              timeout 5m
              gc-interval 1m
      }
    
      set set_tcpaste_meter_v6 {
              type ipv6_addr
              size 65535
              flags timeout, dynamic
              timeout 5m
              gc-interval 1m
      }
    
      tcp dport {9999,10000} ct state new add @set_tcpaste_meter_v4 { ip saddr limit rate 5/minute } accept
      tcp dport {9999,10000} ct state new add @set_tcpaste_meter_v6 { ip6 saddr limit rate 5/minute } accept
    

Build Status