I hereby claim:
- I am hierocles on github.
- I am hierocles (https://keybase.io/hierocles) on keybase.
- I have a public key ASB71ZueHI_1vC8fNxlemoYKogcpSsZHwPAO_z6cF4UKmQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
alias nginxreload="sudo nginx -s reload" | |
alias nginxrestart="sudo nginx -s stop && sudo nginx" | |
alias nginxservers="cd /opt/homebrew/etc/nginx/servers" | |
function nginxcreate() { | |
wget https://gist.githubusercontent.com/hierocles/395f4a1debecdf1f60f7bd5d8a989832/raw/43825d0c4c162f38845c1a835808e39d5db737ce/nginx-server-template.conf -O /opt/homebrew/etc/nginx/servers/$1.conf | |
sed -i '' "s:{{host}}:$1:" /opt/homebrew/etc/nginx/servers/$1.conf | |
if [ "$2" ]; then |
server { | |
listen 443 ssl http2; | |
listen [::]:443 ssl http2; | |
ssl_certificate /opt/homebrew/etc/nginx/ssl/{{host}}.crt; | |
ssl_certificate_key /opt/homebrew/etc/nginx/ssl/{{host}}.key; | |
ssl_ciphers HIGH:!aNULL:!MD5; | |
# listen 80; | |
server_name {{host}}; |