Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
d51a3abb
Commit
d51a3abb
authored
9 years ago
by
Rodrigo Nascimento
Browse files
Options
Downloads
Patches
Plain Diff
Pass all push configs to settings
parent
229ecb16
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/rocketchat-lib/settings/server/startup.coffee
+11
-0
11 additions, 0 deletions
packages/rocketchat-lib/settings/server/startup.coffee
server/lib/cordova.coffee
+18
-17
18 additions, 17 deletions
server/lib/cordova.coffee
with
29 additions
and
17 deletions
packages/rocketchat-lib/settings/server/startup.coffee
+
11
−
0
View file @
d51a3abb
...
...
@@ -30,3 +30,14 @@ Meteor.startup ->
RocketChat
.
settings
.
add
'Meta:robots'
,
''
,
{
type
:
'string'
,
group
:
'Meta'
}
RocketChat
.
settings
.
add
'Meta:google-site-verification'
,
''
,
{
type
:
'string'
,
group
:
'Meta'
}
RocketChat
.
settings
.
add
'Meta:msvalidate.01'
,
''
,
{
type
:
'string'
,
group
:
'Meta'
}
RocketChat
.
settings
.
addGroup
'Push'
RocketChat
.
settings
.
add
'Push_debug'
,
false
,
{
type
:
'boolean'
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_enable'
,
false
,
{
type
:
'boolean'
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_production'
,
false
,
{
type
:
'boolean'
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_apn_passphrase'
,
''
,
{
type
:
'string'
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_apn_key'
,
''
,
{
type
:
'string'
,
multiline
:
true
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_apn_cert'
,
''
,
{
type
:
'string'
,
multiline
:
true
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_apn_dev_passphrase'
,
''
,
{
type
:
'string'
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_apn_dev_key'
,
''
,
{
type
:
'string'
,
multiline
:
true
,
group
:
'Push'
}
RocketChat
.
settings
.
add
'Push_apn_dev_cert'
,
''
,
{
type
:
'string'
,
multiline
:
true
,
group
:
'Push'
}
This diff is collapsed.
Click to expand it.
server/lib/cordova.coffee
+
18
−
17
View file @
d51a3abb
...
...
@@ -3,21 +3,22 @@ Meteor.methods
console
.
log
.
apply
console
,
arguments
Meteor
.
startup
->
Push
.
debug
=
true
Push
.
Configure
apn
:
passphrase
:
'***'
keyData
:
Assets
.
getText
'certs/PushRocketChatKey.pem'
certData
:
Assets
.
getText
'certs/PushRocketChatCert_development.pem'
gateway
:
'gateway.sandbox.push.apple.com'
'apn-dev'
:
passphrase
:
'***'
keyData
:
Assets
.
getText
'certs/PushRocketChatKey.pem'
certData
:
Assets
.
getText
'certs/PushRocketChatCert_development.pem'
gateway
:
'gateway.sandbox.push.apple.com'
production
:
false
badge
:
true
sound
:
true
alert
:
true
vibrate
:
true
Push
.
debug
=
RocketChat
.
settings
.
get
'Push_debug'
if
RocketChat
.
settings
.
get
(
'Push_enable'
)
is
true
Push
.
Configure
apn
:
passphrase
:
RocketChat
.
settings
.
get
'Push_apn_passphrase'
keyData
:
RocketChat
.
settings
.
get
'Push_apn_key'
certData
:
RocketChat
.
settings
.
get
'Push_apn_cert'
'apn-dev'
:
passphrase
:
RocketChat
.
settings
.
get
'Push_apn_dev_passphrase'
keyData
:
RocketChat
.
settings
.
get
'Push_apn_dev_key'
certData
:
RocketChat
.
settings
.
get
'Push_apn_dev_cert'
gateway
:
'gateway.sandbox.push.apple.com'
production
:
RocketChat
.
settings
.
get
'Push_production'
badge
:
true
sound
:
true
alert
:
true
vibrate
:
true
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment