Skip to content

Instantly share code, notes, and snippets.

@andrearug
andrearug / cloud-config-static-ip.yml
Created May 8, 2017 01:17 — forked from raugustinus/cloud-config-static-ip.yml
coreos cloud-config static ip address with docker remote API
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAA.... you@example.com
coreos:
units:
- name: docker-tcp.socket
command: start
enable: yes
content: |
@andrearug
andrearug / nginx.conf
Created May 8, 2017 00:34 — 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
@andrearug
andrearug / letsencrypt-hostname.sh
Created May 3, 2017 17:16 — forked from xgin/letsencrypt-hostname.sh
Secure plesk clean installation with hostname certificate by Let's Encrypt
#!/bin/bash -e
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.
### Secure plesk clean installation with hostname certificate by Let's Encrypt
export PYTHONWARNINGS="ignore:Non-standard path"
LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"}
HOSTNAME=$(hostname)
# Use staging server for testing
# --server https://acme-staging.api.letsencrypt.org/directory