Skip to content

Instantly share code, notes, and snippets.

@spamguy
spamguy / diplicity.conf
Created January 6, 2017 15:09
An HTTPS reverse proxy configuration for Diplicity.
server {
listen 3000 ssl;
listen [::]:3000;
error_log /usr/local/var/log/nginx/error.log;
access_log /usr/local/var/log/nginx/access.log;
# Google DNS, Open DNS, Dyn DNS
resolver 8.8.8.8 8.8.4.4 208.67.222.222 208.67.220.220 216.146.35.35 216.146.36.36 valid=300s;
resolver_timeout 3s;
@spamguy
spamguy / dipl.io.conf
Last active October 25, 2019 06:28
An nginx configuration featuring HTTP/2, IPv6, Let's Encrypt SSL, and a decent cipher suite
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name www.dipl.io dipl.io;
return 301 https://dipl.io$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;