schort logo

schort

  •  0 ratings
In category: URL Shorteners

About schort

No login, no javascript, just short links.

  •   1223  
  •   0  
  •   0  
  •   0  
Github stats:
  •  Commits: N/A  
  •   N/A  
  •   N/A  
  •  Latest commit: N/A  

Self-host this app for $0.99/mo only!

Languages/Platforms/Technologies:
Lincenses:

More about schort

schort - It's just a tiny link shortener

Installation instructions:

  1. Create a user and adjust permissions to write at least into /opt/schort/data
    1. sudo mkdir -p /opt/schort
    2. sudo groupadd schort
    3. sudo useradd -d /opt/schort -g schort -M -s /sbin/nologin schort
    4. sudo chown -R schort:schort /opt/schort
    5. sudo -u schort git clone https://github.com/sqozz/schort.git /opt/schort
    6. sudo chmod 770 /opt/schort/data
  2. Install requirements:
    1. sudo -u schort virtualenv /opt/schort/venv
    2. sudo -u schort -s
    3. source ./venv/bin/activate
    4. pip install -r requirements.txt
  3. Configure your wsgi or fcgi server:
    1. Check the docs of your preferred server. E.g. gunicorn, uwsgi, fastcgi, …
    2. uwsgi example: /usr/bin/uwsgi --master --daemonize /dev/null --disable-logging --plugin python39 --wsgi-file /opt/schort/schort.wsgi --post-buffering 1 --enable-threads --socket /tmp/uwsgi_schort.sock --processes 1 --fileserve-mode /opt/schort/schort.wsgi --pidfile /var/run/uwsgi_schort/schort.pid
  4. Configure your webserver that he talks to your wsgi/fcgi server:
    1. Check the docs of your preferred webserver. E.g. nginx, apache, …
    2. nginx example (you should really look into securing your server with https):
server {
    listen 80;
    listen [::]:80;
    server_name schort.your.domain;

    sendfile on;
    client_max_body_size 20M;
    keepalive_timeout 0;

    location / { try_files $uri @schort; }
    location @schort {
        include uwsgi_params;
        uwsgi_pass unix:/tmp/uwsgi_schort.sock;
    }
}

Requirements:

Module Explanation
Flask Flask handels all HTTP-stuff in this application
sqlite3 In gentoo this useflag needs to be set while compiling python3

µWSGI

The schort.wsgi file can be set as UWSGI_PROGRAM if you use uWSGI. Keep in mind, that the UWSGI_DIR needs to be set to the path where schort.py resists. This is because schort is not installed in a global scope. Since schort.wsgi imports schort.py it needs his workspace in the same folder.

Comments (0)

Please login to join the discussion on this project.

schort Reviews (0)

Overall Rating

None

based on 0 ratings

Please login to review this project.

No reviews for this project yet.

↑ back to top

RackNerd tall Banner

Popular Projects

Nextcloud

in File Transfer & Synchronization
 53k    1    1    0  

FluxBB

in Social Networks and Forums
 52k    0    0    0  

Teddit

in Social Networks and Forums
 28k    0    0    0  

RustDesk

in Remote Access
 24k    0    0    0  

Libre Translate

in Miscellaneous
 23k    0    0    0  

MeTube

in Automation
 20k    0    0    0  

Gatus

in Status / Uptime pages
 19k    0    0    0  

Most Discussed

Nextcloud

in File Transfer & Synchronization
 53k    1    1    0  

Tube Archivist

in Automation
 10k    0    1    0  

OneDev

in Project Management
 8k    0    0    0  

iodine

in Proxy
 6k    0    0    0  

Alf.io

in Booking and Scheduling
 6k    0    0    0  

sysPass

in Password Managers
 3k    0    0    0  

Misskey

in Social Networks and Forums
 7k    0    0    0  
pCloud Lifetime

Top Rated Projects

Technitium DNS Server

 1 rating
in DNS

Pydio

 1 rating
in File Transfer & Synchronization

Bagisto

 1 rating
in E-commerce

LinkAce

 1 rating
in Bookmarks and Link Sharing

Gitea

 1 rating
in Project Management

Audiobookshelf

 1 rating
in Audio Streaming

Nextcloud

 1 rating
in File Transfer & Synchronization

Categories

You May Also Be Interested In

Clink logo
Clink cover

Clink

Dead-simple, super minimal URL shortener in C.

Shlink logo
Shlink cover

Shlink

URL shortener with REST API and command line interface. Inc…

Simply Shorten logo
Simply Shorten cover

Simply Shorten

A simple URL shortener that just shortens links.