A link shortener using Shlink designed to run with SharpNet and SharpCD
-
Make sure SharpCD havs been installed.
-
Ensure the enviromental variables have been set in an enviromental variable file:
# Password for postgres
POSTPASS=postgres_password
# Email and password for PGAdmin
ADMIN_EMAIL=myemail@mail.com
ADMINPASS=pgadminpass
#=============================
# sharpnet ports
HTTP_PORT=80
HTTPS_PORT=443
# Sharpnet gmail login credentials
# for sending errors
MAILPASS=email_password
SENDER_EMAIL=email
# Email that problems will be sent to
RECEIVER_EMAIL=email@domain1.com
# Domain for certificates
DOMAIN=domain2.com
# For Devs only
DEV=FALSE
NETWORK=sharpnet(See the sharpnet documentation for more information)
- Run the following command to install the dependencies:
sharpcd --remotefile https://raw.githubusercontent.com/Sharpz7/shlink/main/.sharpcd/dependencies.yml(NOTE: This install will install postgres, sharpnet and shlink)
-
Make sure SharpCD havs been installed.
-
Get a Geolite License key
-
Ensure the enviromental variables have been set in an enviromental variable file:
GEOLITE_LICENSE_KEY=your_key
# Password for postgres
POSTPASS=postgres_password
# Domains that shlink will be available on
DOMAIN=domain1.com,domain2.com- Run the following command to install the shlink:
sharpcd --remotefile https://raw.githubusercontent.com/Sharpz7/shlink/main/.sharpcd/sharpcd.yml