FlippinTurt Posted March 1, 2021 Share Posted March 1, 2021 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 Quote Link to comment
CorneliousJD Posted March 3, 2021 Share Posted March 3, 2021 I've setup this container but it just doesn't work, loading IP:7777 fails to load the page. Log shows > [email protected] 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 Quote Link to comment
whitedwarf Posted March 4, 2021 Share Posted March 4, 2021 Hello, I tried it as well and got the same issue & same log. Let me know if you need other info for the debug. Quote Link to comment
FlippinTurt Posted March 4, 2021 Author Share Posted March 4, 2021 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 > [email protected] 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. Quote Link to comment
whitedwarf Posted March 4, 2021 Share Posted March 4, 2021 Ah yes, it was as simple as that. Thanks Quote Link to comment
Moun Posted March 29, 2021 Share Posted March 29, 2021 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; } Quote Link to comment
FlippinTurt Posted March 30, 2021 Author Share Posted March 30, 2021 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?) Quote Link to comment
Recommended Posts
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.