Skip to content

Instantly share code, notes, and snippets.

@rchurchley
rchurchley / nginx.conf
Last active March 21, 2016 06:41
The nginx web server can be installed from Homebrew (OS X) or the usual package repositories (Linux). This gist contains a few sample configurations to get started with.
# /usr/local/etc/nginx/nginx.conf
# /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
events {
worker_connections  1024;
}
@rchurchley
rchurchley / Fix PATH for Finder-launched applications on OS X
Last active March 21, 2016 06:41
Applications launched from the Finder, Dock, etc. on Mac OS X do not inherit environment variables, which can break applications that call locally installed external binaries. This can be fixed by configuring the path for services in the user domain.
sudo launchctl config user path $PATH