URL Shortening via YOURLS #1182
Replies: 2 comments · 2 replies
-
Have a look at #1002 where similar issues were discussed. It seems that some got it to work, while others not. It requires configuration of both services and frontend webserver for this to work (i.e. the privatebin server must be able to resolve and reach the yourls instance). |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks for the response and the reference. I have tried a ton without much luck. I am hopeful someone shares a docker-compose file that includes both services and maybe a config that could shed some light on what I am doing wrong. I do think it has to do with connectivity of some sort but I have tried adding host records to my local dns so that the API calls stay in network and that still won't work. I also tried eliminating domains and entered the hostnames of the containers in hopes for a different result but it wasn't fruitful. Regardless, it's a great solution as is. Someday someone will figure it out.
Config File:
Edit: by moderator for readability of the configs |
Beta Was this translation helpful? Give feedback.
All reactions
-
I'm not sure, but I would expect the port mapping from 9070 to 80 to only occur at the network boundaries or even only at the egress, so maybe the Yourls instance on the "yourls" network would be reachable at "http://yourls:9070/..." from privatebins point of view? This only matters when using the yourls proxy (apiurl in the [yourls] section) - if not using the proxy, the public URL would get specified in the urlshortener parameter (which has a leading space, not sure if PHP tolerates this). |
Beta Was this translation helpful? Give feedback.
All reactions
-
I use this, give it a try: https://github.com/ajsap/privatebin-yourls |
Beta Was this translation helpful? Give feedback.
-
Describe the problem/question
I must be doing something wrong. I have the below configured but when I click the shorten URL, it doesnt create the shortlink. The end result is that it acts like it succeeds and gives me the address of https://www.opera.com
Any suggestions are welcome.
; (optional) URL shortener address to offer after a new paste is created.
; It is suggested to only use this with self-hosted shorteners as this will leak
; the pastes encryption key.
urlshortener = "https://paste.jpdesigned.com/shortenviayourls?link="
; (optional) the "signature" (access key) issued by YOURLS for the using account
signature = "XXXXXXXXX"
; (optional) the URL of the YOURLS API, called to shorten a PrivateBin URL
apiurl = "https://link.jpdesigned.com/yourls-api.php"
Did you use the FAQ section?
What you did?
Tried a variety of urls.
What happens
It acts like it worked but it didnt.
What should happen
No response
Additional information
No response
Server address
No response
Server OS
No response
Webserver
No response
PrivateBin version
No response
Browser and version
No response
Local operating system and version
No response
Issue reproducibility
No, I cannot reproduce it on https://privatebin.net.
Beta Was this translation helpful? Give feedback.
All reactions