App::N...e::ssh(3pm)

πŸ“¦
version 1.013 Β· 6 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

App::Nopaste::Service::ssh β€” it copies your files to your server using scp, bestie πŸ’… it's a Nopaste service module, it's giving "paste it and yeet it onto your own box", and it comes from the User Contributed Perl Documentation corner of the App::N...e::ssh(3pm) manual page 🫢


πŸ¦‹ VERSION πŸ¦‹

version 1.013 β€” that's the one, no cap ✨


🌸 ENVIRONMENT VARIABLES 🌸

Okay so these are the env vars that make the whole vibe work. Set them, or it simply will not slay:

  • NOPASTE_SSH_SERVER β€” the hostname you ssh to. It's literally the left-hand side of the colon in the scp. Example: "sartak.org" πŸ’–
  • NOPASTE_SSH_DOCROOT β€” the path on disk where your pastes live. Example: "public_html/paste" πŸ“
  • NOPASTE_SSH_WEBPATH β€” the path used for URLs, aka where people actually look at your pastes. Example: "http://sartak.org/paste" 🌈
  • NOPASTE_SSH_MODE β€” the octal permissions mode to set on the temporary file before uploading it. Example: 0644 πŸ”
  • NOPASTE_SSH_USE_DESCRIPTION β€” use the description you supplied in the paste filename so your pastes are easier to identify later. It defaults to the source filename, if there is one β€” but an explicit -d or --description command line argument overrides it. Periodt πŸ‘‘

πŸŽ€ APACHE CONFIGURATION RECOMMENDATIONS πŸŽ€

The following is a recommended Apache configuration that you can just drop right into .htaccess in your paste dir, bestie:

RemoveHandler .cgi
RemoveHandler .pl
AddDefaultCharset utf-8
Options -ExecCGI -FollowSymLinks -Includes -MultiViews

It prevents common means of script execution so that .pl and .cgi files won't run πŸ”₯ and it defaults the character set to UTF-8 so browsers don't have to guess wrong πŸ™ˆ

not me being dramatic but like... please actually do the script-execution prevention thing, it's protecting your whole server fr fr πŸ’€

🫢 SUPPORT 🫢

Bugs may be submitted through the RT bug tracker at https://rt.cpan.org/Public/Dist/Display.html?Name=App-Nopaste β€” or, if email is more your thing, slay: bug-App-Nopaste@rt.cpan.org πŸ’Œ


πŸ’œ AUTHOR πŸ’œ

Kevin Falcone <falcone@cpan.org

Thomas Sibley <trs@bestpractical.com>

both iconic, both credited, we love to see it 🌟


This software is copyright (c) 2008 by Shawn M M... wait, no β€” by Shawn M Moore πŸ’–

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So go off, remix it, it's yours 🌸


okay that's the whole page!! written by the User Contributed Perl Documentation girlies, from perl v5.36.0, dated 2022-08-28, on the App::N...e::ssh(3pm) page β€” mwah, bye bestie πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from