feat: Working oauth2 proxy, on localhost.
All checks were successful
CI / release (push) Successful in 5m31s
All checks were successful
CI / release (push) Successful in 5m31s
This commit is contained in:
19
compose.dev.yaml
Normal file
19
compose.dev.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
services:
|
||||||
|
oauth2-proxy:
|
||||||
|
image: quay.io/oauth2-proxy/oauth2-proxy:latest
|
||||||
|
command: --config /oauth2-proxy/oauth2-proxy.cfg
|
||||||
|
volumes:
|
||||||
|
- ./oauth2-proxy:/oauth2-proxy
|
||||||
|
ports:
|
||||||
|
- 4180:4180
|
||||||
|
|
||||||
|
docs:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
container_name: docs
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file: .env
|
||||||
|
ports:
|
||||||
|
- ${PORT:-8081}:80
|
||||||
|
depends_on:
|
||||||
|
- oauth2-proxy
|
||||||
27
oauth2-proxy/oauth2-proxy.cfg
Normal file
27
oauth2-proxy/oauth2-proxy.cfg
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Replace with your own credentials
|
||||||
|
client_id="54ac14e4-4e6b-46ce-a870-01b297421e89"
|
||||||
|
client_secret="W8r4ozypT4Qx23P0wa9pGHQAyUtmYOW8"
|
||||||
|
oidc_issuer_url="https://id.housh.dev"
|
||||||
|
|
||||||
|
# Replace with a secure random string
|
||||||
|
cookie_secret="lGaySNwq1tNKd1pcji0IQrz7tPYbt2P8"
|
||||||
|
|
||||||
|
# Upstream servers (e.g http://uptime-kuma:3001)
|
||||||
|
upstreams="http://docs:80"
|
||||||
|
|
||||||
|
# Additional Configuration
|
||||||
|
provider="oidc"
|
||||||
|
scope = "openid email profile groups"
|
||||||
|
|
||||||
|
# If you are using a reverse proxy in front of OAuth2 Proxy
|
||||||
|
reverse_proxy=false
|
||||||
|
|
||||||
|
# Email domains allowed for authentication
|
||||||
|
email_domains="*"
|
||||||
|
insecure_oidc_allow_unverified_email="true"
|
||||||
|
|
||||||
|
# If you are using HTTPS
|
||||||
|
cookie_secure="false"
|
||||||
|
|
||||||
|
# Listen on all interfaces
|
||||||
|
http_address="0.0.0.0:4180"
|
||||||
Reference in New Issue
Block a user