Jump to content

Moun

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Moun

  1. On 3/1/2021 at 9:59 PM, FlippinTurt said:

    Description
    Haste is an open-source pastebin software written in node.js, which is easily installable in any network. It can be backed by either redis or filesystem, and has a very easy adapter interface for other stores. A publicly available version can be found at hastebin.com

    The current configuration is set to save files to the /app/data folder

    You can setup static pages by editing 

    
      "documents": {
        "about": "./about.md"
      }

    In the config.js

    Links:
    https://hastebin.com/about.md
    https://github.com/nzzane/haste-server

    hi am trying to run pastebin through a reverse proxy subfolder using swag but i cant seam to get it to work

    i have a custom network for swag and the pastebin container is on the same network ofc

    all my other subfolders are working except this one

    any help is appreciated

    here is my conf

    ## Version 2021/03/30
    # hastebin does not require a base url setting
    
    location /hastebin {
        return 301 $scheme://$host/hastebin/;
    }
    
    location ^~ /hastebin/ {
        include /config/nginx/proxy.conf;
        resolver 127.0.0.11 valid=30s;
        set $upstream_app hastebin;
        set $upstream_port 7777;
        set $upstream_proto http;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;
    
        rewrite /hastebin(.*) $1 break;
    }

     

×
×
  • Create New...