Skip to content

Instantly share code, notes, and snippets.

View bo01ean's full-sized avatar

Nathan Trujillo bo01ean

View GitHub Profile
@bo01ean
bo01ean / nginx
Last active January 13, 2017 23:01 — forked from vdel26/nginx
Openresty init.d script
#!/bin/bash
#
# chkconfig: 2345 55 25
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx
# For Debian, run: update-rc.d -f nginx defaults
# For CentOS, run: chkconfig --add nginx
#
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
@bo01ean
bo01ean / openresty.sls
Last active August 2, 2016 18:50 — forked from pinge/openresty.sls
NGINX OpenResty salt formula
{% set local_source = '/usr/local/src' -%}
{% set output_folder = '/tmp' -%}
{% set nginx = pillar.get('nginx', {}) -%}
{% set openresty_config = nginx.get('openresty', {}) -%}
{% set openresty_version = openresty_config.get('version', '1.9.7.5') -%}
{% set openresty_checksum = openresty_config.get('checksum', 'sha1=e4313c35364c4551523eeb751fcfcc4b32c89b56') -%}
{% set openresty_package = 'ngx_openresty-' + openresty_version + '.tar.gz' -%}