Skip to content

Instantly share code, notes, and snippets.

@rodrisar
rodrisar / nginx.conf
Created March 13, 2016 00:16 — forked from yoren/nginx.conf
Proxy WP content images for your local server
// Source: https://www.chriswiegman.com/2016/02/getting-media-on-your-local-wordpress-site/
// But if you need an nginx flavor
// Put this in your server block
rewrite ^/wp-content/uploads(.+)$ http://myurl.com/wp-content/uploads$1 last;
@rodrisar
rodrisar / nginx.conf
Created February 17, 2016 23:48 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your location block(s):
#
# include cors_support;
#
# A limitation to this method is that Nginx doesn't currently send headers
@rodrisar
rodrisar / index_cli.php
Last active September 29, 2015 22:28 — forked from PrestaEdit/gist:27ed4cdd770ee050c398
Install PrestaShop with CLI
$ php install-dev/index_cli.php --language="es" --timezone="America/Mexico_City" --base_uri="/" --domain="prestashop.local" --db_server="localhost" --db_user="root" --db_password="" --db_name="prestashop" --db_clear="1" --db_create="1" --prefix="ps_" --engine="InnoDB" --name="Prestashop Store" --activity="0" --country="mx" --firstname="John" --lastname="Doe" --password="" --email="[email protected]" --license="0" --newsletter="0" --send_email="1"