This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs and configs for oauth2_proxy, 18f.gov
- Loading branch information
Mike Bland
committed
May 25, 2015
1 parent
a351c60
commit 4f74852
Showing
10 changed files
with
93 additions
and
104 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
- include: nginx.yml | ||
#- include: google_auth_proxy.yml | ||
#- include: oauth2_proxy.yml |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- name: Download OAuth2 Proxy | ||
get_url: | ||
url=https://github.com/bitly/oauth2_proxy/releases/download/v1.0/google_auth_proxy-1.0.linux-amd64.go1.3.tar.gz | ||
dest=/home/vagrant/oauth2_proxy-1.0.linux-amd64.go1.3.tar.gz | ||
- name: Unpack OAuth2 Proxy | ||
unarchive: | ||
src=/home/vagrant/oauth2_proxy-1.0.linux-amd64.go1.3.tar.gz | ||
dest=/home/vagrant | ||
copy=no | ||
- name: Symlink OAuth2 Proxy | ||
file: | ||
src=/home/vagrant/oauth2_proxy-1.0.linux-amd64.go1.3/google_auth_proxy | ||
dest=/usr/local/18f/bin/oauth2_proxy | ||
state=link | ||
- name: Copy OAuth2 Proxy wrapper script | ||
copy: | ||
src=../../../../usr/local/18f/bin/oauth2_proxy.sh | ||
dest=/usr/local/18f/bin/oauth2_proxy.sh | ||
- name: Copy OAuth2 Proxy config | ||
copy: | ||
src=../../../../usr/local/18f/etc/oauth2_proxy.cfg | ||
dest=/usr/local/18f/etc/oauth2_proxy.cfg | ||
- name: Copy OAuth2 Proxy init script | ||
copy: | ||
src=../../../../etc/init.d/oauth2_proxy | ||
dest=/etc/init.d/oauth2_proxy |
26 changes: 13 additions & 13 deletions
26
deploy/etc/init.d/google_auth_proxy → deploy/etc/init.d/oauth2_proxy
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#! /bin/sh | ||
LOGS=/var/log/oauth2_proxy | ||
|
||
if [ ! -d $LOGS ]; then | ||
mkdir -p $LOGS | ||
fi | ||
|
||
exec /usr/local/18f/bin/oauth2_proxy "$@" >>$LOGS/access.log 2>&1 |
This file contains 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