Skip to content

Instantly share code, notes, and snippets.

View juanpablocs's full-sized avatar
👨‍💻 Coding..

Juan pablo juanpablocs

👨‍💻 Coding..
View GitHub Profile
juanpablocs / ssl_client_cert_if.conf
Last active September 14, 2020 04:35 — forked from onnimonni/ssl_client_cert_if.conf
How to regex from nginx variable with map directive
View ssl_client_cert_if.conf
# I wanted to use same ssl client certificate CA in nginx for multple client certs
# but restrict the users outside our organisation accessing everything.
# Because I can decide what to put into the emailAddress I can force verify everything and only pass the proper users.
# This way you can restrict users only with email addresses from
# Put this into http context in nginx configs
juanpablocs /
Created April 25, 2018 20:06 — forked from KingsleyOmon-Edo/
Ubuntu post installation script for installing software of your choice.
curl_check ()
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
echo "Installing curl..."
apt-get install -q -y curl