This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'logger' | |
| require 'resque/server' | |
| use Rack::ShowExceptions | |
| Resque.redis = Redis.new(:host => "HOST", :port => 6379, :password => "PASS") | |
| run Rack::URLMap.new \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import request | |
| from flask import Flask, request, redirect | |
| BASE_URL = os.environ.get('BASE_URL') or 'http://localhost:5000' | |
| VAULT_ADDR = os.environ['VAULT_ADDR'] | |
| VAULT_ROLE = os.environ['VAULT_ROLE'] | |
| GOOGLE_CLIENT_ID = os.environ['GOOGLE_CLIENT_ID'] | |
| GOOGLE_CLIENT_SECRET = os.environ['GOOGLE_CLIENT_SECRET'] | |
| app = Flask(__name__) |
OlderNewer