Your Own URL Shortener
YOURLS is a set of PHP scripts that will allow you to run Your Own URL Shortener, on your server. You'll have full control over your data, detailed stats, analytics, plugins, and more. It's free and open-source.
Both the master and docker branches are missing the following files
- nginx-selfsigned.crt
- nginx-selfsigned.key
- yourls.conf
To run Kubernetes version locally
- Install minikube, kubectl and Docker Desktop
- Clone the repo, download the missing files and open the master branch
- Change usernames and passwords in mysql.yaml, yourls.yaml and config.php to desired values
- cd to root of repo the following commands
kubectl create configmap yourls --from-file=config.php --from-file=index.php
kubectl create configmap nginx --from-file=nginx-selfsigned.crt --from-file=nginx-selfsigned.key --from-file=yourls.conf
kubectl apply -f .
- Open one terminal and run
sudo kubectl port-forward service/nginx 443:443
- Open another terminal and run
sudo kubectl port-forward service/yourls 80:80
- Leave them both running and go to http://localhost/admin/index.php to “install” yourls
To run Docker Compose version locally
- Install Docker Desktop
- Clone repo, download the missing files and open the docker branch
- Change usernames and passwords in .env.yourls, .env.mysql and config.php to desired values
- cd to root of repo and run
docker-compose up
- Go to http://localhost/admin/index.php to “install” yourls
Free software. Do whatever the hell you want with it.
YOURLS is released under the MIT license.