This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |