Skip to content

Instantly share code, notes, and snippets.

View gopal-g's full-sized avatar
👁️
Teaching Machines How To Behave

Gopal G gopal-g

👁️
Teaching Machines How To Behave
  • Appnings Software Solutions
  • Bengaluru
View GitHub Profile
@gopal-g
gopal-g / cors.nginxconf
Created August 15, 2017 12:02 — forked from pauloricardomg/cors.nginxconf
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {
@gopal-g
gopal-g / helpers.php
Created June 2, 2017 14:13 — forked from mabasic/helpers.php
config_path function for Lumen framework
<?php
if ( ! function_exists('config_path'))
{
/**
* Get the configuration path.
*
* @param string $path
* @return string
*/