I hereby claim:
- I am jmdobry on github.
- I am jmdobry (https://keybase.io/jmdobry) on keybase.
- I have a public key whose fingerprint is 9E28 A648 9AF5 B52E 76AF D314 CB8E 4C46 84A6 04DA
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
function basicIndex(target) { | |
target.$index = {} | |
target.$collection = [] | |
} | |
/** | |
* Usage: | |
* | |
* @configure({ | |
* idAttribute: '_id' |
var store = new JSData.DS(); | |
function FakeAdapter() { | |
var data = {}; | |
function addMetaForResource(resource) { | |
if (resource.name !== data) { | |
data[resource.name] = {}; | |
data[resource.name].curId = 1; | |
data[resource.name].index = {}; |
var fb = new DSFirebaseAdapter({ | |
basePath: 'https://my-app.firebase.io' | |
}); | |
var ls = new DSLocalStorageAdapter(); | |
var store = new JSData.DS({ | |
// try firebase first, otherwise try offline data | |
fallbackAdapters: ['fb', 'ls'], | |
// After creating an item, sync it to localStorage |
angular.module('myApp').provider('DSCustomAdapter', function () { | |
'use strict'; | |
var defaults = this.defaults = { | |
queryTransform: function (resourceName, params) { | |
return params; | |
} | |
}; |
Install nginx:
sudo apt-get install nginx
Create a new virtual host (server block):
sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/jenkins
Edit this file:
sudo vi /etc/nginx/sites-available/jenkins
to say:
Start your rethinkdb instance with this flag:
--bind all
(or bind=all
in the configuration file for your instance)
Block external access to the web UI with these two commands:
sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j DROP
sudo iptables -I INPUT -i eth0 -s 127.0.0.1 -p tcp --dport 8080 -j ACCEPT
Install nginx:
sudo apt-get install nginx