schort logo

schort

  •  0 ratings
In category: URL Shorteners

About schort

No login, no javascript, just short links.

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

Deploy this app to Linode with a free $100 credit!

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

Linux VPS from $11/yr.
RackNerd VPS for $11.38/mo

Popular Projects

FluxBB

in Social Networks and Forums
 29k    0    0    0  

Nextcloud

in File Transfer & Synchronization
 17k    1    1    0  

Libreddit

in Social Networks and Forums
 5k    0    1    0  

CasaOS

in Self-hosting Solutions
 4k    0    0    0  

Audiobookshelf

in Audio Streaming
 3k    0    1    0  

Mediagoblin

in Photo and Video Galleries
 3k    0    0    0  

Dashboard

in Personal Dashboards
 2k    0    0    0  

Most Discussed

Nextcloud

in File Transfer & Synchronization
 17k    1    1    0  

Tube Archivist

in Automation
 2k    0    1    0  

OneDev

in Project Management
 1k    0    0    0  

iodine

in Proxy
 1k    0    0    0  

Alf.io

in Booking and Scheduling
 1k    0    0    0  

sysPass

in Password Managers
 741    0    0    0  

Misskey

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

Top Rated Projects

Gitea

 1 rating
in Project Management

Bagisto

 1 rating
in E-commerce

LinkAce

 1 rating
in Bookmarks and Link Sharing

Pydio

 1 rating
in File Transfer & Synchronization

Audiobookshelf

 1 rating
in Audio Streaming

Nextcloud

 1 rating
in File Transfer & Synchronization

Seafile

 1 rating
in File Transfer & Synchronization

Categories

You May Also Be Interested In

Kutt logo
Kutt cover

Kutt

A modern URL shortener with support for custom domains.

goshorly logo
goshorly cover

goshorly

An easy self-hosted Link shortener in Golang with Redis <3.

Simply Shorten logo
Simply Shorten cover

Simply Shorten

A simple URL shortener that just shortens links.