Skip to content

Instantly share code, notes, and snippets.

begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
@warrior1724
warrior1724 / nginx.conf
Created July 10, 2016 19:38 — 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
1. Put these files in /etc/persistent on the ubnt
2. on the ubnt device, do:
cd /etc/persistent
chmod +x rc.postsysinit ssh-tunnel
dropbearkey -t rsa -f ubnt-rsa
3. dropbear will print out the public-key part (line that looks like: ssh-rsa XXXXXX... )
4. put this ssh-rsa line into ~/.ssh/authorized_keys on the server
5. on the ubnt device, do:
cfgmtd -r
cfgmtd -w -p /etc