When Firefox Send shutdown, I started running my own instance of NextCloud to send files to people. It worked as expected, but it also felt slow. It felt like I was using a website that just groggily woke up from a nap whenever I logged into it.
I figured that maybe I could replace it with something leaner—especially since I felt like I didn’t need a lot of the features that NextCloud offered. I’ve recently been learning how to set up static sites on OpenBSD and it occurred to me that I could use OpenBSD’s built-in HTTP server to send files to people.
Setting up the Server
I went through the same process that I listed in my notes on setting up an OpenBSD server using httpd. You can use any other web server, but I love how simple it is to setup httpd.
Changing Write Permissions
I wanted to be able to write in the
/var/www/htdocs/send.jagtalon.com as a normal user, so I changed the permissions to be owned by my user instead of root:
$ doas chown -R jag:jag /var/www/htdocs/send.jagtalon.com
Easily Uploading Files
I don’t want to copy files manually to the remote server using the command line every time I wanted to send a file, so I set up Cyberduck to connect to my server using SFTP. I bet Transmit would work well too if you’re on macOS!
It was relatively easy to set up, but a bit intimidating. I needed my private SSH key, SSH password, my username, and the server’s IP address. Now I can drag and drop files into the server without touching the terminal.
I also added a few conveniences:
- I set Cyberduck to go into
/var/www/htdocs/send.jagtalon.com/every time I connected to my server.
- I added the URL of my server so that I could right click and copy the URL of any file.
And we’re done! Now I can send files and even host little “pens” for demos.
I ended up going with Tresorit instead since I already use that service for backups. It’s just cheaper to use that service for file sharing as well.