Skip to content

Commit

Permalink
Update Read me
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelal committed Feb 19, 2016
1 parent 3e6f2cb commit 2370261
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# ansible-oauth2-proxy
An ansible role to install oauth2 proxy
An ansible role to install [oauth2 proxy](https://github.com/bitly/oauth2_proxy)

Variables
---------

```yaml
oaut2_proxy_http : "https://github.com/bitly/oauth2_proxy/releases/download/v2.0.1/oauth2_proxy-2.0.1.linux-amd64.go1.4.2.tar.gz"
oaut2_proxy_http_sha256 : "c6d8f6d74e1958ce1688f3cf7d60648b9d0d6d4344d74c740c515a00b4e023ad"
oauth2_user : "oauth2"
oauth2_dir : "/var/oauth2_proxy"
oauth2_dir_tmp : "/var/oauth2_proxy/tmp"
oauth2_dir_log : "/var/log/oauth2-proxy/"
oauth2_config_path : "/var/oauth2_proxy/oauth2_config.cfg"
oauth2_compress_filename : "{{ oaut2_proxy_http | basename }}"
oauth2_filename : "{{ oauth2_compress_filename |replace('.tar.gz', '') }}"

# See for all options https://raw.githubusercontent.com/bitly/oauth2_proxy/master/contrib/oauth2_proxy.cfg.example
oauth2_proxy_config :
http_address : "127.0.0.1:5000"
upstreams : [ "127.0.0.1:6060" ]
provider : "github"
email-domain : "*"
cookie-secure : false
cookie-domain : "localhost:5000"
cookie_secret : "COOK_SECRET"
client_id : "YOUR_CLIENT_ID"
client_secret : "CLIENT_SECERET"

oauth2_config_cmdline_args : "-github-org='MYCoolORg'"
```
License
--------
MIT

0 comments on commit 2370261

Please sign in to comment.