0
Solved

Alternative to bitly

Sascha K 2 years ago in Feature requests updated by ecipollina 10 months ago 6

Would you consider adding support for a self hosted alternative to bitly, such as Polr or Yourls? Both have APIs that are similar to bitly's, and are open source solutions that can be self hosted. Having control over my data is one of the main features that made me (and probably others too) use filerun instead of Google Drive.

Answer

Answer
Solved

You can configure FileRun to use any other URL shortening service. Please see the $config['app']['weblinks']['custom_url_shortener'] directive on the advanced configuration page of the documentation site.

Copying here the current configuration option:


$config['app']['weblinks']['custom_url_shortener'] ='http://your-site.com/yourls-api.php?signature=YOUR-SIGNATURE&action=shorturl&format=simple';The example is based on Yourls (https://yourls.org).
For shorteners which require the FileRun weblink address to be present in the URL, use the ### placeholder.


Answer
Solved

You can configure FileRun to use any other URL shortening service. Please see the $config['app']['weblinks']['custom_url_shortener'] directive on the advanced configuration page of the documentation site.

Copying here the current configuration option:


$config['app']['weblinks']['custom_url_shortener'] ='http://your-site.com/yourls-api.php?signature=YOUR-SIGNATURE&action=shorturl&format=simple';The example is based on Yourls (https://yourls.org).
For shorteners which require the FileRun weblink address to be present in the URL, use the ### placeholder.


Hi i put customizables/config.php 

new config.php file with:


<?php

$config['app']['weblinks']['custom_url_shortener'] = 'http://myweb.com/folder/yourls-api.php?signature=xxxxxxx&action=shorturl&format=simple';

?>

after this:

i try to login file run.........  BUT not OPEN

do you help me

thanks

Make sure there is no character before "<?php" (no white space, no enter, nothing).

Remove "?>", it's not needed.

I am afraid I do not understand from your message what the problem is. FileRun doesn't load? It loads, but you can't login? You can login, but can't create short links?

Hi, Vlad,

FileRun loads, but i can't login

I see  one white space before: " <?php"     I fix them        and i remove   "?>"  

Filerun now  works fine !!!  and Yourls  autogenerate link!!!

THANKS !!!!!

One last Question:

I don't want to use the link-name  that is done automatically by Yourls,

I would like to know if I can write the name (custom URL keywords) for Yourls link ? 


what do i have to change in the next line?

$config['app']['weblinks']['custom_url_shortener'] =
'http://myweb.com/folder/yourls-api.php?signature=xxxxxxx&action=shorturl&format=simple';

Thx

Hello,


Any option for custom keyword for link creation with Yourls ?

thanks