A web proxy to load the Factlink functionality on any site, without an extension
Switch branches/tags
Nothing to show
Clone or download
Cannot retrieve the latest commit at this time.
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin Remove sha-cache guard for bundler May 13, 2014
config Use new js-library server May 8, 2014
fixtures/approvals Fix approvals with new non-clashing names Apr 17, 2014
lib Don't allow spaces in hostnames Jul 3, 2014
spec Don't allow spaces in hostnames Jul 3, 2014
.gitignore Remove sha-cache guard for bundler May 13, 2014
.rbenv-version Add rbenv 0.3.0 compatibility May 21, 2014
.rubocop.yml first version of the web proxy in ruby Mar 25, 2014
.ruby-version Update to Ruby 2.1.5 Dec 22, 2014
.travis.yml Update to Ruby 2.1.5 Dec 22, 2014
Gemfile Update to Ruby 2.1.5 Dec 22, 2014
Gemfile.lock Use rubygems version of approvals Jun 4, 2014
LICENSE Create LICENSE Mar 26, 2014
Procfile Do not set development env Mar 31, 2014
README.md Added yet another badge May 26, 2014
Rakefile Fixed tests for travis May 26, 2014
run.sh
run_in_docker.sh Dev port numbers should be 8080 Apr 14, 2014
server.rb Replace raven with appsignal Apr 1, 2014

README.md

Factlink Web Proxy

Build Status Code Climate Code Climate Dependency Status

Simple proxy which allows you to load any page on the internet, and inject the Factlink Javascript Library, to be able to share links comments on sites without Factlink enabled.

Usage

To run locally, run run.sh, to run in docker, run using run_in_docker.sh.

Deploying

The current deploy process is using Dokku. After pushing the app, some configuration still needs to be set. For example, when configuring for Factlink, this would be the following.

dokku config:set proxy-production redirect_for_no_url='https://factlink.com' \
  hostname='fct.li' \
  host='http://fct.li' \
  api_base_uri='https://factlink.com' \
  jslib_uri='https://static.factlink.com/lib/dist/factlink_loader.min.js?o=proxy' \
  APPSIGNAL_PUSH_API_KEY='...'

Contributing

Currently this is very much a Factlink product. We recognize this would be interesting to use for other parties as well, and are very open to extract out the general portions of the code, so we can share that.

License

Copyright (c) 2014 Factlink Inc. and individual contributors. Licensed under MIT license, see LICENSE.txt for the full license.