Go to file
Nemo 3bb93af236 Private Key Passphrase moved to .env 2016-10-30 15:32:57 +05:30
config check deploy key on CI side 2015-08-23 00:39:11 +05:30
keys Initial work on encryption support 2016-10-30 15:31:43 +05:30
views Initial work on encryption support 2016-10-30 15:31:43 +05:30
.editorconfig Initial commit :bom: 2015-08-22 17:50:03 +05:30
.gitignore Private Key Passphrase moved to .env 2016-10-30 15:32:57 +05:30
.travis.yml verbose deploy 2015-08-22 21:18:09 +05:30
Gemfile Initial work on encryption support 2016-10-30 15:31:43 +05:30
Gemfile.lock Initial work on encryption support 2016-10-30 15:31:43 +05:30
README.md Adds support for fall through routes 2015-08-23 01:17:36 +05:30
app.rb Initial work on encryption support 2016-10-30 15:31:43 +05:30
config.ru Adds tests, travis support and more 2015-08-22 18:22:32 +05:30
config.yml thin config changes 2015-08-22 20:54:59 +05:30
deploy-rsa Automated builds and deploys 2015-08-22 20:41:30 +05:30
deploy.sh Fixes pid check 2015-08-22 21:23:03 +05:30
lightsaber.rb Initial work on encryption support 2016-10-30 15:31:43 +05:30
redirects.yml Initial work on encryption support 2016-10-30 15:31:43 +05:30
test.rb sinatra relative routes don't start with slash 2015-08-23 01:20:10 +05:30

README.md

lightsaber Build Status

Lightsaber is a simple DNS Redirect service. It offers 301/302 redirects for your domains. The configuration is kept public on this github repository itself.

Usage

To add a DNS record, point your domain via a CNAME entry to lightsaber.captnemo.in.

You can also have fallthrough domain redirects (thanks to @vivekprakash for the suggestion), by making the redirect a hash with a root key set to the url prefix.

# This is a fallthrough redirect
# so t.co/ev would redirect to twitter.com/ev
t.co:
  root: https://twitter.com
# All goo.gl routes will forward to google.com, and not use fallthrough
goo.gl: https://google.com

Next, you will need to do the following:

  1. Fork this repo
  2. Edit the redirects.yml file and add your redirect in the relevant section
  3. File a Pull Request with your edit

Once the Pull Request is approved, the redirect will automatically be deployed via Travis.

If you do not wish to make your domain redirects public, or give away your domain names, you can self host this as well.

License

Released under the MIT License.