Skip to content

Instantly share code, notes, and snippets.

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 Aug 15, 2017 — forked from pauloricardomg/cors.nginxconf
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
View cors.nginxconf
#
# 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 Jun 2, 2017 — forked from mabasic/helpers.php
config_path function for Lumen framework
View helpers.php
<?php
if ( ! function_exists('config_path'))
{
/**
* Get the configuration path.
*
* @param string $path
* @return string
*/