oauth2-proxy/contrib/local-environment
Simmo Saan 3ac834dbcf
Fix local-environment ports (#3136)
* Change Dex port in local-environment from 4190 to 5556

Port 4190 is blocked by standards-compliant browsers (e.g. Firefox), as per https://fetch.spec.whatwg.org/#port-blocking.
Port 5556 is used by Dex in its example config files: 745e1114f3/examples/config-dev.yaml (L50)

* Fix upstream in local-environment/oauth2-proxy.cfg

http://httpbin.localtest.me:8080 is only exposed to the host, not to httpbin Docker network.
Causes Bad Gateway before.

* Do not expose unauthenticated httpbin service in local-environment

This defeats the point of having oauth2-proxy.
It has already been misleading by causing the bug fixed in cafc6af48fc38f6fe4395fb0c7e2638bc84e6091.
It serves as a bad example: users might accidentally expose the service they're trying to protect in the first place.

* Remove unnecessary httpbin.localtest.me alias from local-environment
2025-07-20 20:32:50 +02:00
..
keycloak chore(examples): update keycloak to v25 (#2706) 2024-07-18 23:57:15 +02:00
kubernetes chore(deps): update helm release oauth2-proxy to v7.14.1 (#3133) 2025-07-20 11:08:23 +02:00
traefik Add example local environment with traefik (#1091) 2021-03-22 13:55:25 +00:00
Makefile fix gitea token validation by allowing custom validation url and extracting the proper base api url for github cloud, github enterprise and gitea (#2194) 2023-09-14 10:09:57 +01:00
README.md Fix and enhance OIDC example (#934) 2020-12-19 15:48:33 +00:00
dex.yaml Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
docker-compose-alpha-config.yaml update to release version v7.10.0 2025-07-17 07:56:01 +00:00
docker-compose-gitea.yaml Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
docker-compose-keycloak.yaml Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
docker-compose-nginx.yaml Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
docker-compose-traefik.yaml update to release version v7.10.0 2025-07-17 07:56:01 +00:00
docker-compose.yaml Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
nginx.conf NGINX return 403 for sign_in (#2322) (#2323) 2024-01-20 19:08:46 +00:00
oauth2-proxy-alpha-config.cfg Multiple providers in alpha config (#947) 2021-04-03 17:06:30 +01:00
oauth2-proxy-alpha-config.yaml Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
oauth2-proxy-gitea.cfg fix gitea token validation by allowing custom validation url and extracting the proper base api url for github cloud, github enterprise and gitea (#2194) 2023-09-14 10:09:57 +01:00
oauth2-proxy-keycloak.cfg Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
oauth2-proxy-nginx.cfg Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
oauth2-proxy-traefik.cfg Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00
oauth2-proxy.cfg Fix local-environment ports (#3136) 2025-07-20 20:32:50 +02:00

README.md

oauth2-proxy: local-environment

Run make up to deploy local dex, etcd and oauth2-proxy instances in Docker containers. Review the Makefile for additional deployment options.