Skip to content

Instantly share code, notes, and snippets.

View riblee's full-sized avatar

Reibl János Dániel riblee

View GitHub Profile
@riblee
riblee / nginx.conf
Last active August 29, 2015 14:27 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@riblee
riblee / _service.md
Last active August 29, 2015 14:15 — forked from naholyr/_service.md

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)