Skip to content

Instantly share code, notes, and snippets.

View sjoorm's full-sized avatar

Alexey Tishchenko sjoorm

View GitHub Profile
@sjoorm
sjoorm / logrotate-nginx
Created August 15, 2020 12:26 — forked from aputs/logrotate-nginx
logrotate config for nginx
/var/log/nginx_*.log {
daily
compress
delaycompress
rotate 2
missingok
nocreate
sharedscripts
postrotate
test ! -f /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid`
@sjoorm
sjoorm / generator.sh
Last active August 29, 2015 14:01 — forked from jessedearing/gist:2351836
SSL certificate generator
#!/bin/bash
name=
if [ -z "$1" ]
then
name=cert
else
name=$1
fi
echo "Generating an SSL private key to sign your certificate..."