Mostly copied from http://qiita.com/A-I/items/f6f4b1b50fed9db739df
Install Veertu and download and start the CoreOS image.
$ sudo passwd core
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rotp' | |
require 'time' | |
user = ..hard coded.. | |
secret = ..hard coded.. | |
abort unless user and secret |
require 'gollum/app' | |
require 'digest/sha1' | |
class App < Precious::App | |
User = Struct.new(:name, :email, :password_hash, :can_write) | |
before { authenticate! } | |
before /^\/(edit|create|delete|livepreview|revert)/ do authorize_write! ; end | |
helpers do |
Mostly copied from http://qiita.com/A-I/items/f6f4b1b50fed9db739df
Install Veertu and download and start the CoreOS image.
$ sudo passwd core