自サイトにお手軽にgoogle認証を組み込めるという、夢のプロダクトです!
Ver0.4でついにvhost対応されました。これで『トップディレクトリからのパスを変更すると動かなくなるプロダクト』でも問題なく動かせるようになりました!ヤッタネ!
…ということで、コンフィグのテンプレ的なものを作ってみました。
#==========================================
# Config for gate
#==========================================
# Gate の待ち受けポート
# Forwardポートは最下部で設定
address: :8888
#==========================================
# ssl keys (optional)
#==========================================
# ssl:
# cert: ./ssl/ssl.cer
# key: ./ssl/ssl.key
#==========================================
# 認証
#------------------------------------------
# Github または google認証
#==========================================
auth:
session:
# authentication key for cookie store
key: secret456
cookie_domain: hoge.com
info:
# oauth2 provider name (`google` or `github`)
# google または github
service: google
# your app keys for the service
client_id: [googleAPI_ID]
client_secret: [googleAPI_secret]
# your app redirect_url for the service:
# if the service is Google, path is always "/oauth2callback"
redirect_url: http://hogehoge.hoge.com/oauth2callback
#--------------------------------------
# 制限ユーザー
#--------------------------------------
# restrict user request. (optional)
# restrictions:
# - hoge.com # domain of your Google App (Google)
# - @gmail.com # specific email address (same as above)
# - your_company_org # organization name (GitHub)
#==========================================
# document root for static files
#==========================================
htdocs: ./htdocs
#==========================================
# proxy 設定
#==========================================
proxy:
- path: /
host: hogehoge.hoge.com
dest: http://127.0.0.1:8080