update deps and exclude any config from git

This commit is contained in:
LosslessBot 2016-07-13 16:19:00 +02:00
parent 2caa3c3d1a
commit a2bf0315ac
8 changed files with 15 additions and 185 deletions

2
.gitignore vendored
View File

@ -1,5 +1,5 @@
node_modules/
nginxconfig/zones/
nginxconfig/
coverage/
docs/
.nogit/

View File

@ -1 +0,0 @@
{"domainName":"test100.bleu.de","created":1468407737,"expires":1476183737}

View File

@ -1,61 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIF4zCCBMugAwIBAgITAPr5NPJaC4P8Afv5wUHV0taFDDANBgkqhkiG9w0BAQsF
ADAiMSAwHgYDVQQDDBdGYWtlIExFIEludGVybWVkaWF0ZSBYMTAeFw0xNjA3MTMx
MDAzMDBaFw0xNjEwMTExMDAzMDBaMBoxGDAWBgNVBAMTD3Rlc3QxMDAuYmxldS5k
ZTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBALWwQO+WIZZgEoGXfFVb
3sB5iIro4xtHHxYLr5l0i9YfxJFA0mltgez7IHPIE0CWbdxme+rFUdbG+s4bpe3b
g3IYtiSJ7HIMSpgkj66ow4ZVbs5jJ3VeykZsBcXDNqy5conFuwI326BZeDKfmm2g
UxY7Pm2jJOat7ERUpone6Y7UO7TRa5INmUPZzOB9FzAx3YSFSbUbXzpZFkTJrX+u
gVtgkEU4hj51NHGS1+AkvJrVbH5MtZiXxJLTYru8o6J4pwGVOgku/GQcN7uff2Xi
sbV9gWbFdQjULW1YMYLDhk5DmN/WuhodoJHdnjtlv9WwJ1gOHsxu3NVKYshDZJHV
r/CwEirdg9mffxiGHkhnrfNnXxHb9NygD0dXi/+ly8RsVBwTBV43782xE4hVZXOq
D0225hU6YcCfBb9qv8YG3vjIbnNyTjJjS2F5URX1RwhBTKmOZ1e8Wp8uf/yud2H7
yd/j3vMQW2jNtCLzstw8JWq6S7hWs1nvGZAp7Ck5xXnrZnKT4sQiWlY35PUfvie+
tzIAmmSHxr+38vKuD6SJF++Fdrr/tWiNXJApO3h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KPkJukR4Tlx8cD1FtvA8am0abw0UFHQvrUy9ZoglCxekIS4QJnc2ER5pMa
pgz4iwKCAQEAvS/WuYze0XFTR7a/fi0G12g8HLVyGe7XZsqfA2mIqXOjRWfEblbn
FwwmMOEj+a7jAs7HUgeLO6/KmivHGDz5Vo8cxnVul96lEPOh5R+Dgz/bL5h8SFfI
Hl6/RQ/DwFfJZopyISNED8MJ1kchWBc3wUxgFwshKvq45GkJL7sMw12Mz5yEFolu
oxWS4qwa0GZZ8Z+kAg+unMYXUbK/COLZZjpAvPRfD+7C3KEEXlivJuWkVm+nO43A
fVeMLWmH5Qqtr4szwtVZh6yilkZnC7OwCsOIrXE8HlXvx3/mUJoDS3Dgd8FJ14ec
U0rwy860wsKQvsZSp7t9RqDbJH5a7dyWyQKCAQEA0Vxuf49w8nWjTc0J4CSL21Mv
fDV/XSwwqI1+MfgZBSUyaRHXeNhR4dGX7bzMgyIW5s++5GaiDpJG4xxof1c5pgLq
bnQ5Go/sk/x5hqXAEY1GuXa9s0efYSvqKIe3pLPiv4CH/Cz3POS2w0W0ctewcSSA
eaT3VmVwFTjQPqnkpe29tI5GNcDBypNm5PimvlR3swYcYsHU98OvLtCirpINd42C
W/FwxJSaVo1Tf/JOwJO+0vyw6L7/hiOVNwef8Hoj/I2BU9IA2uWUv4t//hPTmLwE
LPCIZOHaWN5/Kpyi6+bNJeaLXdRC3iwGElsKWvDcbea1lt3Zg8V8t0x2VAfekA==
-----END RSA PRIVATE KEY-----

View File

@ -1,65 +0,0 @@
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
server_names_hash_bucket_size 128;
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
gzip on;
gzip_disable "msie6";
# gzip_vary on;
# gzip_proxied any;
# gzip_comp_level 6;
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
daemon off;

View File

@ -24,7 +24,7 @@
"dependencies": {
"@types/q": "*",
"beautylog": "^5.0.13",
"cert": "0.0.16",
"cert": "0.0.17",
"q": "^1.4.1",
"shelljs": "^0.7.0",
"smartfile": "^4.0.10",

View File

@ -6,8 +6,6 @@ var qenv_1 = require("qenv");
var smartnginx = require("../dist/index");
// setup environment
var testQenv = new qenv_1.Qenv(process.cwd(), path.join(process.cwd(), ".nogit"));
console.log(process.env.CF_EMAIL);
console.log(process.env.CF_KEY);
describe("smartnginx", function () {
var testNginxConfig;
var testNginxZone01;
@ -17,6 +15,11 @@ describe("smartnginx", function () {
testNginxZone01 = new smartnginx.NginxZone({
zoneName: "test100.bleu.de",
type: smartnginx.zoneTypes.reverseProxy,
destination: "192.192.192.191"
});
testNginxZone02 = new smartnginx.NginxZone({
zoneName: "test102.bleu.de",
type: smartnginx.zoneTypes.reverseProxy,
destination: "192.192.192.192"
});
testNginxZone01.should.be.instanceof(smartnginx.NginxZone);
@ -35,6 +38,7 @@ describe("smartnginx", function () {
describe(".addZone()", function () {
it("should add a zone to NginxConfig Object", function () {
testNginxConfig.addZone(testNginxZone01);
testNginxConfig.addZone(testNginxZone02);
});
});
describe(".deploy()", function () {
@ -48,4 +52,4 @@ describe("smartnginx", function () {
});
});
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIj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LFdBQVcsRUFBQztZQUNqQixJQUFJLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1lBQ3JCLEVBQUUsQ0FBQyx5Q0FBeUMsRUFBQyxVQUFTLElBQUk7Z0JBQ3RELGVBQWUsQ0FBQyxNQUFNLEVBQUU7cUJBQ25CLElBQUksQ0FBQztvQkFDRixJQUFJLEVBQUUsQ0FBQztnQkFDWCxDQUFDLENBQUMsQ0FBQztZQUNYLENBQUMsQ0FBQyxDQUFBO1FBQ04sQ0FBQyxDQUFDLENBQUM7SUFDUCxDQUFDLENBQUMsQ0FBQztBQUNQLENBQUMsQ0FBQyxDQUFDIn0=

View File

@ -6,8 +6,6 @@ import * as smartnginx from "../dist/index";
// setup environment
let testQenv = new Qenv(process.cwd(),path.join(process.cwd(),".nogit"));
console.log(process.env.CF_EMAIL);
console.log(process.env.CF_KEY);
describe("smartnginx",function(){
let testNginxConfig:smartnginx.NginxConfig;
let testNginxZone01:smartnginx.NginxZone;
@ -17,6 +15,11 @@ describe("smartnginx",function(){
testNginxZone01 = new smartnginx.NginxZone({
zoneName:"test100.bleu.de",
type:smartnginx.zoneTypes.reverseProxy,
destination:"192.192.192.191"
});
testNginxZone02 = new smartnginx.NginxZone({
zoneName:"test102.bleu.de",
type:smartnginx.zoneTypes.reverseProxy,
destination:"192.192.192.192"
});
testNginxZone01.should.be.instanceof(smartnginx.NginxZone);
@ -35,6 +38,7 @@ describe("smartnginx",function(){
describe(".addZone()",function(){
it("should add a zone to NginxConfig Object",function(){
testNginxConfig.addZone(testNginxZone01);
testNginxConfig.addZone(testNginxZone02);
})
});
describe(".deploy()",function(){