Skip to content

mlsteele/nimi-redirector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nimi Redirector

A simple short link redirection service.

With this service you can type something like oh/cool into you browser and get to http://gladIDidntHaveToTypeThis.example.com/

Develop

Clone the repository.

$ git clone ...

Install the dependencies.

$ pip install -r requirements.txt

Run the development server

$ python nimi.py

In a browser go to http://localhost:5000/.

Deploy

To deploy nimi, add an nginx server like this.

server {
	server_name n;
	listen 80;

	root /some/path/nimi-redirector/static;

	location / { try_files $uri @app; }
	location @app {
		include uwsgi_params;
		uwsgi_pass unix:/tmp/uwsgi-nimi.sock;
	}
}

Install uwsgi if it isn't already.

$ sudo apt-get install uwsgi

Run uwsgi-run.sh which will serve nimi:

  • Using wsgi.
  • Through a socket in /tmp.
  • As the www-data user.

About

A simple short link redirection service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published