Skip to content
Snippets Groups Projects
Unverified Commit ca17913d authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Change push gateway and stats server address

parent da857f1b
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ RocketChat.settings.addGroup 'Push', ->
@add 'Push_debug', false, { type: 'boolean', public: true }
@add 'Push_enable', true, { type: 'boolean', public: true }
@add 'Push_enable_gateway', true, { type: 'boolean' }
@add 'Push_gateway', 'https://rocket.chat', { type: 'string' }
@add 'Push_gateway', 'https://gateway.rocket.chat', { type: 'string' }
@add 'Push_production', true, { type: 'boolean', public: true }
@add 'Push_test_push', 'push_test', { type: 'action', actionText: 'Send_a_test_push_to_my_user' }
......
......@@ -10,8 +10,8 @@ generateStatistics = ->
statistics = RocketChat.statistics.save()
statistics.host = Meteor.absoluteUrl()
if RocketChat.settings.get 'Statistics_reporting'
try
HTTP.post 'https://rocket.chat/stats',
try
HTTP.post 'https://collector.rocket.chat/',
data: statistics
catch e
logger.warn('Failed to send usage report')
......
RocketChat.Migrations.add({
version: 58,
up: function() {
RocketChat.models.Settings.update({ _id: 'Push_gateway', value: 'https://rocket.chat' }, {
$set: {
value: 'https://gateway.rocket.chat',
packageValue: 'https://gateway.rocket.chat'
}
});
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment