Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
👨‍💻 Coding..

Juan pablo juanpablocs

💭
👨‍💻 Coding..
View GitHub Profile
@juanpablocs
juanpablocs / ssl_client_cert_if.conf
Last active Sep 14, 2020 — 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 @koodimonni.fi
# Put this into http context in nginx configs
##
@juanpablocs
juanpablocs / post_install.sh
Created Apr 25, 2018 — forked from KingsleyOmon-Edo/post_install.sh
Ubuntu post installation script for installing software of your choice.
View post_install.sh
#!/bin/bash
curl_check ()
{
echo "Checking for curl..."
if command -v curl > /dev/null; then
echo "Detected curl..."
else
echo "Installing curl..."
apt-get install -q -y curl