gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.yandex.ru"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "service@mysite.ru"
gitlab_rails['smtp_password'] = "mypass"
gitlab_rails['smtp_domain'] = "mail.mysite.ru"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
if(options.onFile){
options.onFile(name, val);
}
req.app.get('io')
var server = http.createServer(app);
//more actions ....
var io = require('app/socket/server')(server);
app.set('io', io);
var multipartMiddleware = multipart({
//тут я хочу инициализировать socket
onProgress(rec, exp) {
socket.emit('received', (bytesReceived / bytesExpected).toFixed(2) * 100);
console.log(rec, exp);
}
});