This is a redirect service for linking to Lemmy communities throughout the internet. When you're on Lemmy, universal
links work (either in the form of relative link or the [email protected] form).
But when linking to a Lemmy community from outside Lemmy, you face the problem of forcing the user to go to the instance you linked to instead of their own.
Using this project you can create a link like this: https://lemmyverse.link/c/[email protected], the user
will be given the option to set their home instance and every further link to lemmyverse.link will work as usual.
This project is currently hosted on:
- lemmyverse.link
- threadiverse.link
- sublinks.link
If you'd like to translate this project to your language, run the following command:
./bin/console translation:extract --force --format yaml [language]
Replace [language] with your two-letter country code, for example for German it would be:
./bin/console translation:extract --force --format yaml de
Edit the file translations/messages+intl-icu.[language].yaml
If you want to deploy this project using serverless, follow these steps:
export DOMAIN_NAME=lemmyverse.link(replacelemmyverse.linkwith your domain)export AWS_REGION=eu-central-1rm -rf ./var/{cache,log} public/buildAPP_ENV=prod composer install --no-dev --no-scriptsyarn installyarn build./bin/console cache:warmup --env=prodexport DOMAIN_ZONE=XXX(replaceXXXwith your AWS domain zone id)export DOMAIN_ID=Lemmyverse(replaceLemmyversewith any identifier for your domain)serverless deploy --stage prod --verbose --region $AWS_REGIONexport ASSETS_BUCKET=$(aws cloudformation describe-stacks --stack-name LemmyverseLink-$DOMAIN_ID-prod --query "Stacks[0].Outputs[?OutputKey=='AssetsBucket'].OutputValue" --output=text --region $AWS_REGION)export CDN_ID=$(aws cloudformation describe-stacks --stack-name LemmyverseLink-$DOMAIN_ID-prod --query "Stacks[0].Outputs[?OutputKey=='Cdn'].OutputValue" --output=text --region $AWS_REGION)aws s3 sync public/build s3://$ASSETS_BUCKET/build --deleteaws cloudfront create-invalidation --distribution-id $CDN_ID --paths "/*"
export DOMAIN_ID=Lemmyverse(replaceLemmyversewith any identifier for your domain)export AWS_REGION=eu-central-1export ASSETS_BUCKET=$(aws cloudformation describe-stacks --stack-name LemmyverseLink-$DOMAIN_ID --query "Stacks[0].Outputs[?OutputKey=='AssetsBucket'].OutputValue" --output=text --region $AWS_REGION)aws s3 rm s3://$ASSETS_BUCKET/ --recursiveserverless remove --stage prod --verbose --region $AWS_REGION

