combination of machinedata/oauth2_proxy and linuxserver/letsencrypt
366
.oi, the majority of this is not original work. all i've done is glue together amazing work done by other people, who are all credited at the bottom of this readme. enjoy.
This is an attempt to glue the certbot and fail2ban functionality from linuxserver/letsencrypt onto machinedata/oauth2_proxy.
If you'd like the nginx server from linuxserver/letsencrypt as well, use the tag "nginx" or build from the dockerfile in the nginx branch. Nginx is necessary for using multiple subdomains, but not necessary if you'll be routing based on path.
I'll add details on config and available parameters at some point, until then, see the original pages for information.
-e DHLEVEL=[number].
docker run -d --restart=always \
--cap-add=NET_ADMIN \
--name=lets_oauth2_proxy \
-v /[PATH_TO_SHARE]/nginx:/config \ ##NGINX VERSION ONLY
-v /[PATH_TO_SHARE]/oauth2_proxy:/conf \
-e EMAIL=[EMAIL_FOR_LETSENCRYPT] \
-e URL=[BASE_URL] \
-e SUBDOMAINS=[subdomain,subdomain,etc] \
-e VALIDATION=http \
-e OAUTH2_PROXY_CONFIG=/conf/oauth2_proxy.cfg \
-p 80:80 -p 443:443 -p 4180:4180 \
-e TZ=[TIMEZONE] \
digitalgrease/lets_oauth2_proxy; docker logs -f lets_oauth2_proxy
credit:
https://hub.docker.com/r/linuxserver/letsencrypt/
https://hub.docker.com/r/machinedata/oauth2_proxy/
Thanks to bogartusmaximus for nginx and oauth2_proxy config info.
https://github.com/bogartusmaximus/MediaVault-oauth2-reverse-proxy
Content type
Image
Digest
Size
36 MB
Last updated
over 8 years ago
docker pull digitalgrease/lets_oauth2_proxy