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”.
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.
STEP 6
Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the images below.
STEP 7
Once you click on User-defined script a new window will open. Follow the instructions below:
- General: In the Task field type in Install Privatebin. Uncheck “Enabled” option. Select root User.
- Schedule: Select Run on the following date then select “Do not repeat“.
- 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
STEP 8
After you click OK on STEP 7 a new warning pop up window will open. Click OK.
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.
STEP 10
Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.
STEP 11
Now click the “Create” button. Follow the instructions in the image below.
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
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.
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.
Enjoy PrivateBin!
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.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: Some Docker Containers Need WebSocket.
This post was updated on Thursday / May 5th, 2022 at 1:02 PM