Skip to content

Instantly share code, notes, and snippets.

View deflume1's full-sized avatar

Christopher DeFlumeri deflume1

View GitHub Profile
@deflume1
deflume1 / ghost.conf
Created March 21, 2017 01:38
Sample ghost supervisor file
[program:ghost]
command = npm start --production
directory = /var/www/ghost
user = ghost
autostart = true
autorestart = true
stdout_logfile = /var/log/supervisor/ghost.log
stderr_logfile = /var/log/supervisor/ghost_err.log
environment = NODE_ENV="production"
@deflume1
deflume1 / ghost config
Created March 21, 2017 01:29
A sample production config for ghost
production: {
url: 'https://deflumeri.com',
mail: {},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
@deflume1
deflume1 / nginx.conf
Last active March 21, 2017 02:04
Sample nginx.conf file
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
@deflume1
deflume1 / ghost nginx config
Created March 20, 2017 22:05
Sample Ghost NGINX config file
# map of content type -> expires header
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript max;
~image/ max;
}
# listen for BS traffic on 80 that lacks a hostname, and just serve

Keybase proof

I hereby claim:

  • I am deflume1 on github.
  • I am deflume1 (https://keybase.io/deflume1) on keybase.
  • I have a public key whose fingerprint is 1E21 8A95 ECD6 4C1A DB4E 9BBD 386F 5685 00B1 868B

To claim this, I am signing this object: