Skip to content

Commit b626103

Browse files
author
Ilya Radchenko
committed
Cleanup config model, proxy hint
1 parent e32ae20 commit b626103

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

client/setup/controllers/setup.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
module.exports = function ($scope, $http) {
44
$scope.config = {
55
general: {},
6-
db: {},
7-
email: {},
6+
smtp: {},
87
admin: {}
98
};
109

lib/models/config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
'use strict';
12

2-
var mongoose = require('mongoose')
3-
, Schema = mongoose.Schema
3+
var mongoose = require('mongoose');
4+
var Schema = mongoose.Schema;
45

56
var Config = new Schema({
67
version: Number,
@@ -14,8 +15,8 @@ var Config = new Schema({
1415
password: String,
1516
fromAddress: String
1617
}
17-
})
18+
});
1819

19-
module.exports = mongoose.model('Config', Config)
20+
module.exports = mongoose.model('Config', Config);
2021

21-
module.exports.SCHEMA_VERSION = 2
22+
module.exports.SCHEMA_VERSION = 2;

lib/views/setup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h3>Setup Strider</h3>
2222

2323
<label for="basic-proxyurl">Proxy URL</label>
2424
<input id="basic-proxyurl" type="text" placeholder="Proxy URL" ng-model="config.general.proxyUrl">
25-
<span class="help-block">Publicaly accessible URL for this instance of Strider, e.g. ci.mydomain.com</span>
25+
<span class="help-block">Optional; Proxy URL if behind a corporate firewall or something similar.</span>
2626
</fieldset>
2727
<button wz-next type="submit" class="btn btn-default">Next</button>
2828
</form>

0 commit comments

Comments
 (0)