Shlink Integration #1339
Closed
franco-utalk
started this conversation in
Ideas
Replies: 1 comment
|
Hi @franco-utalk,
Thank you for the contribution, but we don’t accept patches via issues / discussions.
Please create a fork, make your changes, and then create a PR to the upstream.
Thanks in advance,
Enno Gelhaus
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have created a Shlink integration for Postiz URL Shortner. I know you have a few, like kutt, linkdrop etc., but I use Shlink.
So the files I have created are
short.link.service.ts
shlink.ts
They go in the following directories
• libraries/nestjs-libraries/src/short-linking/providers/shlink.ts
• libraries/nestjs-libraries/src/short-linking/short.link.service.ts
ENV variables are
Here is the terminal command to test this from within your docker container
docker exec -it postiz /bin/sh -lc ' apk add --no-cache curl >/dev/null 2>&1 || true curl -s -X POST "$SHLINK_URL/rest/v3/short-urls" \ -H "X-Api-Key: $SHLINK_API_KEY" \ -H "Content-Type: application/json" \ -d "{\"longUrl\":\"https://example.com/test\"}" 'It would be great if you could add this to your next build, so I don't have to compile my own, and it would be a great addition for everyone else in the community.
Thanks
All reactions