From 68fea460ade9b3c15360bf054ff7d2ed435f69b9 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Mon, 20 Feb 2017 11:39:06 +0300 Subject: [PATCH] Example settings added --- BuildServer/settings.js.example | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 BuildServer/settings.js.example diff --git a/BuildServer/settings.js.example b/BuildServer/settings.js.example new file mode 100644 index 0000000..4ab41be --- /dev/null +++ b/BuildServer/settings.js.example @@ -0,0 +1,55 @@ +"use strict"; + +const GitHubApi = require("github"); + +const createGithub = () => new GitHubApi({ + "debug": false, + "headers": { "user-agent": "micro-build-server (mbs.pos)" }, + "host": "pos-github.payonline.ru", + "pathPrefix": "/api/v3", + "protocol": "https", + "timeout": 5000, + "version": "3.0.0" +}); + +module.exports = { + "builderExecutable": "../DotNetBuilder/bin/Debug/MicroBuildServer.DotNetBuilder.exe", + "createGithub": (repoOwner) => { + const github = createGithub(); + + github.authenticate({ + "password": "*** OWNER APPLICATION PASSWORD ***", + "type": "basic", + "username": repoOwner + }); + + /* Or, alternatively: + github.authenticate({ + "password": "*** MBS APPLICATION PASSWORD ***", + "type": "basic", + "username": "*** MBS USER ***" + }); + */ + + return github; + }, + "eslintBrowserConfig": "settings-eslint-browser.json", + "gitpath": "M:/g", + "ignoreCodeAnalysisByDefault": true, + "nugetApiKey": "*** NUGET API KEY ***", + "nugetHost": "https://*** NUGET HOST ***/", + "port": 3000, + "releasepath": "M:/r", + "siteRoot": "https://mbs.your.domain/", + "skipCodeSigning": true, + "smtp": { + "auth": { + "pass": "*** SMTP PASSWORD ***", + "user": "*** SMTP USERNAME ***" + }, + "host": "smtp.host", + "receiver": "receiver@your.domain", + "sender": "sender@your.domain" + }, + "tmpcodepath": "M:/c" +};