This is a simple URL shortener for rtah.xyz - example: https://rtah.xyz/hello or https://rtah.xyz/google or https://rtah.xyz/Vbx8d
This will make it easier to share long links, like for Blog Entries and such, on various social media platforms...
This app runs on a DreamHost VPS using Gunicorn with systemd user services (Linger) for automatic startup and restart.
The systemd service file is located at ~/.config/systemd/user/gunicorn-rtah-shortener.service:
[Unit]
Description=Gunicorn instance for rtah.xyz
After=network-online.target
Wants=network-online.target
[Service]
WorkingDirectory=/home/lar_mo/rtah.xyz/rtah_shortener
Environment="PATH=/home/lar_mo/rtah.xyz/rtah_shortener/.venv/bin"
ExecStart=/home/lar_mo/rtah.xyz/rtah_shortener/.venv/bin/gunicorn --bind=0.0.0.0:8000 --timeout 120 --workers=3 --threads=3 rtah_utils.wsgi
Restart=always
RestartSec=10
[Install]
WantedBy=default.target# Check status
systemctl --user status gunicorn-rtah-shortener
# Restart service
systemctl --user restart gunicorn-rtah-shortener
# View logs
journalctl --user -u gunicorn-rtah-shortener -f
# Stop service
systemctl --user stop gunicorn-rtah-shortener