Link shortener

Currently reading
Link shortener

20
5
NAS
DS916+
Router
  1. RT2600ac
Can anyone recommend a synology hosted link shortener service, that I could use with my own domain?
 

Rusty

Moderator
NAS Support
2,495
752
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
You actually reminded me that I wanted to make that work. So will configure it right now. So tnx for that :D

Running fine. 10-15MB ram utilization, very light and fast.
 
1,104
362
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
You can use this with mysecretname.synology.me DDNS?
 

Rusty

Moderator
NAS Support
2,495
752
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS

Rusty

Moderator
NAS Support
2,495
752
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
@PlanetDyna well considering that you are a beginner let's focus on the Synology Docker UI instead of SSH docker compose or run command line

01. Open Docker UI on your NAS and in the Registry section search for "yourls". 1st result is what you want. Select it and click the Download button.

Screenshot 2020-05-12 at 13.35.00.png


02. After you get a notifications that the download is complete switch to the Image section and locate the image. Select it and click Launch button

03. Enter the name (your choice) and select the options as shown (there is no reason to use a lot of ram for this container. Click the Advanced button.

Screenshot 2020-05-12 at 13.37.09.png


04. On Advanced settings click Auto restart and then move to the Port Settings tab
05. Here define a port of your choice that will match the internal port of the container running on port 80. Lets say 3000. Example below

Screenshot 2020-05-12 at 13.40.30.png


Do not change the container port value, only the local port side (this goes for any docker container)!

06. Jump to the last tab, Environment and along those variables that already exist, add 3 more using the plus sign in the upper left corner:

Missing one more variable from the image: YOURLS_SITE that needs to match the domain name used when accessing this application.

Screenshot 2020-05-12 at 13.44.15.png


Keep in mind that for this to work you will need a running MariaDB or MySQL instance where you have already set up a Database under the name of yourls and created a user and password that has permission for that database.

In the Value section on the right-hand side, enter the correct values. For your DB_HOST enter the IP address of your SQL instance followed by a port, 3306, or any other custom one.

Click Apply and finish the wizard. After the container has landed inside the Container section of Docker, run it.

Access the app on: http://yourdomain.something:port/admin (also works via reverse proxy with https if you configure it, but then change the YOURLS_SITE parameter to match your URL
Hope it helps.
 
Last edited:
Wow, thanks Rusty.

Many thanks for your time!
I have followed the instructions, unfortunately it does not work.

YOURLS_DB_HOST = IP of my Synology NAS + Port 3306 (MariaDB)? Or am I wrong?
 

Attachments

  • yourls_docker.JPG
    yourls_docker.JPG
    54.1 KB · Views: 43

Rusty

Moderator
NAS Support
2,495
752
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
All looks well. What exact problem are you having?
 

Rusty

Moderator
NAS Support
2,495
752
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Enterin the IP of my DS and Port 3000 does not exist. Also no entries on the Database.
Not sure I follow. Let’s star with the fact does the container run? If it’s running go to it’s log tab and check for errors.

Also do you have a running SQL instance?
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Trending threads

Top