How to Install PrivateBin on Your Synology NAS

How to Install PrivateBin on Your Synology NAS

PrivateBin is a minimalist open source web service that allows you to create a paste of your text output and bind it to a single URL that you can then share. This method is perfect for sharing private information inside a Facebook chat, WhatsApp chat or any other IM platform, email, etc. The end-user would just click on the link and get the output in a browser. The information will be automatically deleted/destroyed at a time of your choice: as soon as the receiver reads it, after a few minutes, after a week or several months etc. Data is encrypted and decrypted in the browser using 256bit AES in Galois Counter mode. In this step by step guide I will show you how to install PrivateBin on your Synology NAS using Docker.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Docker via Synology “Package Center”.

Install Docker Synology DSM 7

  • STEP 3

Follow my step by step guide on how to activate your synology.me DDNS on DSM 7
Follow my step by step guide on how to activate your synology.me DDNS on DSM 6.2.4
Note: If you already own a synology.me DDNS, skip this STEP.

  • STEP 4

Add Wildcard Certificate to your synology.me DDNS.
Note: If you already own a synology.me Wildcard DDNS certificate, skip this STEP.

  • STEP 5

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it privatebin. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Privatebin Synology NAS Set up 1

  • STEP 6

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the images below.

Privatebin Synology NAS Set up 2

  • STEP 7

Once you click on User-defined script a new window will open. Follow the instructions below:

  1. General: In the Task field type in Install Privatebin. Uncheck “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK.
docker run -d --name privatebin \
-p 8092:8080 \
-v /volume1/docker/privatebin:/srv/data \
--restart always \
privatebin/nginx-fpm-alpine
chmod -R 0777 /volume1/docker/privatebin

Privatebin Synology NAS Set up 3

  • STEP 8

After you click OK on STEP 7 a new warning pop up window will open. Click OK.

Privatebin Synology NAS Set up 4

  • STEP 9

After you click OK on STEP 8, select your “Install Privatebin” Task then click the “Run” tab. You will be asked to run Install Privatebin – click Yes. Follow the instructions in the image below.

Privatebin Synology NAS Set up 5

  • STEP 10

Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.

Privatebin Synology NAS Set up 6

  • STEP 11

Now click the “Create” button. Follow the instructions in the image below.

Privatebin Synology NAS Set up 7

  • STEP 12

After you click the Create button, the window below will open. Follow the instructions in the image below.

On General area, set the Reverse Proxy Name description: type in Privatebin. After that, add the following instructions:

Source:
Protocol: HTTPS
Hostname: privatebin.yourname.synology.me
Port: 443

Destination:
Protocol: HTTP
Hostname: localhost
Port: 8092

Privatebin Synology NAS Set up 8

  • STEP 13

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 14

Now open your browser and type in https://privatebin.yourname.synology.me in my case https://privatebine.mariushosting.synology.me If everything goes right you will see the Privatebin dashboard page. Add your text, select the expiration time, burn after reading, optionally set up a password then click Send. Follow the instructions in the image below.

Privatebin Synology NAS Set up 9

  • STEP 15

You should now see your synology.me DDBS link with a really long green alphanumerical code. Copy the link and send it wherever you want.

Privatebin Synology NAS Set up 10

Enjoy PrivateBin!

Privatebin Synology NAS Set up 11

Note: Which is the best: Tornote or PrivateBin? For sure PrivateBin.
Note: If you need more information about PrivateBin, you can take a look at their official website.
Note: Find out how to update PrivateBin container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: Instead of a free DDNS you can also set up your own domain name using Reverse Proxy.
Note: How to Schedule Start & Stop For Docker Containers.

This post was updated on Thursday / October 21st, 2021 at 9:41 PM