Sign inSign up

bluelightltd/workbench-pro

By bluelightltd

•Updated almost 8 years ago

workbench-pro

Image
1

815

bluelightltd/workbench-pro repository overview

⁠Post build configuration

  • Run:
vault secrets enable totp 

on the vault pod

./bin/link_config && bundle exec rake db:create db:migrate db:seed

on any daemon pod

./bin/link_config 
nano config/application.yml (customize for your setup)
su -s /bin/bash app
./bin/setup

on the barong pod

  • These commands are automatically executed and do not need to be run manually
bin/link_config && bundle exec puma --config config/puma.rb

on peatio pod

bundle exec peatio service start ranger 

on ranger

⁠BARONG CONFIG

Usage OmniAuth::Strategies::Barong is simply a Rack middleware. Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth⁠.

Here's a quick example, adding the middleware to a Rails app in config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do provider :barong, ENV.fetch('BARONG_CLIENT_ID'), ENV.fetch('BARONG_CLIENT_SECRET') end Configuration You can configure several options, which you pass in to the provider method via a hash:

callback_url(default: your-application-url/auth/barong/callback): Override callback_url used by barong server. domain(default: barong.io): Barong server domain where your application is configured. use_https(default: true) Enable https on your barong sever redirection (disable for test purpose).

./config/application.yml: # Don't forget to check out configuration at config/initializers/omniauth.rb. ./config/application.yml: # See https://github.com/zquestz/omniauth-google-oauth2⁠ ./config/application.yml: # See https://github.com/auth0/omniauth-auth0⁠ ./config/application.yml: # See https://github.com/rubykube/omniauth-barong⁠ ./config/application.yml: # To authenticate using JWT send it's value in "Authorization" header: ./config/application.yml: AUTH0_OAUTH2_DOMAIN: peatio-playground.auth0.com

Tag summary

Content type

Image

Digest

Size

592.3 MB

Last updated

almost 8 years ago

docker pull bluelightltd/workbench-pro