Skip to content

Commit

Permalink
add the OAuth-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
norali12 committed Sep 23, 2024
1 parent e73e9da commit c5a7977
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
version: "3"
services:
oauth2-proxy:
image: quay.io/oauth2-proxy/oauth2-proxy:v7.2.1
environment:
- OAUTH2_PROXY_PROVIDER=github
- OAUTH2_PROXY_CLIENT_ID=Ov23liM9QOo7QdsQ2Rv1
- OAUTH2_PROXY_CLIENT_SECRET=89f4fd65e115ad3af4a6ba5bd592b35f46067e28
- OAUTH2_PROXY_COOKIE_SECRET=mY1hDibXMr0fvi9KdXFbKMAWd2ojgfLn
- OAUTH2_PROXY_COOKIE_SECURE=false
- OAUTH2_PROXY_EMAIL_DOMAINS=*
- OAUTH2_PROXY_REDIRECT_URL=http://localhost:4180/oauth2/callback
- OAUTH2_PROXY_HTTP_ADDRESS=0.0.0.0:4180
- OAUTH2_PROXY_UPSTREAMS=http://frontend:3000/
- OAUTH2_PROXY_PASS_ACCESS_TOKEN=true # Pass access token to upstream
- OAUTH2_PROXY_COOKIE_EXPIRE=10s # Set to 0 to create a session cookie
# - OAUTH2_PROXY_COOKIE_DOMAIN="http://localhost:4180"
image: quay.io/oauth2-proxy/oauth2-proxy:v7.2.1
environment:
- OAUTH2_PROXY_PROVIDER=github
- OAUTH2_PROXY_CLIENT_ID=Ov23liM9QOo7QdsQ2Rv1
- OAUTH2_PROXY_CLIENT_SECRET=89f4fd65e115ad3af4a6ba5bd592b35f46067e28
- OAUTH2_PROXY_COOKIE_SECRET=mY1hDibXMr0fvi9KdXFbKMAWd2ojgfLn
- OAUTH2_PROXY_COOKIE_SECURE=false
- OAUTH2_PROXY_EMAIL_DOMAINS=*
- OAUTH2_PROXY_REDIRECT_URL=http://localhost:4180/oauth2/callback
- OAUTH2_PROXY_HTTP_ADDRESS=0.0.0.0:4180
- OAUTH2_PROXY_UPSTREAMS=http://frontend:3000/
- OAUTH2_PROXY_PASS_ACCESS_TOKEN=true # Pass access token to upstream
- OAUTH2_PROXY_COOKIE_EXPIRE=10s # Set to 0 to create a session cookie
# - OAUTH2_PROXY_COOKIE_DOMAIN="http://localhost:4180"

# - OAUTH2_PROXY_COOKIE_REFRESH= 0s # cookie refresh
# - OAUTH2_PROXY_SET_AUTHORIZATION_HEADER=true # Set Authorization header
# - OAUTH2_PROXY_SET_XAUTHREQUEST=true # Set X-Auth-Request headers

ports:
- "4180:4180"
networks:
- backend
# - OAUTH2_PROXY_COOKIE_REFRESH= 0s # cookie refresh
# - OAUTH2_PROXY_SET_AUTHORIZATION_HEADER=true # Set Authorization header
# - OAUTH2_PROXY_SET_XAUTHREQUEST=true # Set X-Auth-Request headers
ports:
- "4180:4180"
networks:
- backend

database:
image: postgres
Expand Down

0 comments on commit c5a7977

Please sign in to comment.