Simply Shorten is an open-source URL shortener that you can use to shorten and track your links. In this tutorial, you will learn how to install Simply Shorten on Fedora CoreOS Latest.
Before beginning, you should have the following:
sudo dnf upgrade
sudo dnf install git
y
for yes and then press Enter
to proceed with the installation process.Note: For this tutorial, we will install in
/opt/
directory.
cd /opt/
sudo git clone https://gitlab.com/draganczukp/simply-shorten.git
cd simply-shorten/
.env.example
file to .env
:sudo mv .env.example .env
.env
file with a text editor of your choice:sudo nano .env
DB_DATABASE
, DB_USERNAME
, and DB_PASSWORD
variables to point to your preferred database configuration.sudo dnf install php php-fpm php-pdo php-mbstring php-json php-xml php-pecl-zip php-gd nginx supervisor
sudo nano /etc/nginx/nginx.conf
server{}
section with the following configuration:server {
listen 80;
listen [::]:80;
root /var/www/html;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
access_log off;
}
location ~ /\.ht {
deny all;
}
}
sudo systemctl restart nginx
sudo systemctl restart php-fpm
sudo nano /etc/supervisord.d/simply_shorten.ini
[program:simply_shorten]
command=php /opt/simply-shorten/artisan queue:work --sleep=3 --tries=3 --queue=shorten
autostart=true
autorestart=true
user=root
sudo systemctl start supervisord
That's it! You've successfully installed Simply Shorten on your Fedora CoreOS Latest system. You can now begin to use it to shorten and track your URLs.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!