[SUPPORT] FLIPPINTURT hastebin


Recommended Posts

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

Link to comment

I've setup this container but it just doesn't work, loading IP:7777 fails to load the page. 

 

Log shows

> haste@0.1.0 start /usr/src/app
> node server.js

info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:7777

 

Link to comment
On 3/4/2021 at 2:24 AM, CorneliousJD said:

I've setup this container but it just doesn't work, loading IP:7777 fails to load the page. 

 

Log shows


> haste@0.1.0 start /usr/src/app
> node server.js

info: compressed application.js into application.min.js
info: loading static document name=about, path=./about.md
info: listening on 0.0.0.0:7777

 

 

1 hour ago, whitedwarf said:

Hello,

 

I tried it as well and got the same issue & same log.

Let me know if you need other info for the debug.

There will be an update coming in the next CA sweep to fix this.

For the interim, could you both please manually add in port 7777 to the container, feel free to delete the existing one.

Link to comment
  • 4 weeks later...
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;
}

 

Link to comment
22 hours ago, Moun said:

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;
}

 

That looks like it should work, similar to my setup except using subdomain instead of subfolder...
When it's applied, what happens when you go to the host/hastebin? (what error are you getting, or is doing?)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.