royneary / mod_push

Other
68 stars 19 forks source link

ignoring invalid value #12

Open firaskafri opened 8 years ago

firaskafri commented 8 years ago

Hi,

Trying to enable your mod to use GCM only:

Here's my config:

  mod_push:
    include_senders: true
    include_message_count: true
    include_subscription_count: true
    include_message_bodies: true
    backends:
      -
        type: gcm
        app_name: "**********"
        register_host: "******************************"
        auth_key: "****************************************"

And here's the error:

2016-03-10 23:32:18.371 [error] <0.38.0>@gen_mod:validate_opts:241 ignoring invalid value '[[{type,gcm},{appname,<<"**">>},{registerhost,<<"***_">>},{authkey,<<"*******">>}]]' for option 'backends' of module 'mod_push'

royneary commented 8 years ago

just a guess: add a certfile option (for TLS connection to the GCM service) either to mod_push or backends section.

firaskafri commented 8 years ago

Added a certificate option and got the same error.

firaskafri commented 8 years ago

I've got to mention that it works even after getting this error. Not properly though.

royneary commented 8 years ago

You also need a pubsub_host entry in the backends section.