jdev - 2019-10-22


  1. allie

    bent3n: I've been using stanza myself and it's pretty good, at least once I got the hang of it

  2. lovetox_

    Gajim has 100K lines of python code

  3. lovetox_

    ok make that 80K lines, because 20K is the emoji dict

  4. lovetox_

    lets not count that

  5. lovetox_

    30K XML code lines

  6. lovetox_

    (UI files)

  7. bent3n

    I create d a webapp using strophe.js cdn adn uploaded it on my server. When I request the app in my browser I get the error that the page must run on a secured connection. I'm using prosody. Does this mean I have to configure the server so BOSH is considered secure using the command consider_bosh_secure = true; ?

  8. bent3n

    allie can you please send me links to tutorials and documentation ? I could not make sense of @xmpp/client

  9. allie

    bent3n: I don't have any tutorials. I just pieced it together from the examples they had on their github page along with some help in here and on IRC

  10. allie

    bent3n: if you have a reverse proxy like Apache or nginx proxying connections to BOSH, and the reverse proxy is handling the HTTPS, then yes you need that consider_bosh_secure option, just make sure you're not accepting connections for BOSH without the proxy too

  11. allie

    or at least not over http

  12. bent3n

    allie That's the difficulty I face: piecing together the examples they have on github and nmpjs(https://www.npmjs.com/package/stanza/v/12.2.3). How do I set it up (I mean the library) so I can use it ?

  13. allie

    download the source from github and run the build script. it should give you the javascript files you need in the dist directory. it doesn't seem to work properly if you install it via npm as those scripts are missing

  14. bent3n

    So is this(consider_bosh_secure) the only option I need to set to get rid of that error from strophe ?

  15. allie

    maybe that option means you have something else handling the HTTPS and prosody can assume everything coming into the HTTP BOSH port is adequately secured

  16. allie

    maybe. that option means you have something else handling the HTTPS and prosody can assume everything coming into the HTTP BOSH port is adequately secured

  17. bent3n

    allie hmmm. interesting. sorry I'm a noob. By download source do you mean the source code file or the entire source(src) folder from github?

  18. bent3n

    allie I assume I have to also configure nginx to upgrade requests to WS connections , right ?That's if I want to use websockets. Or BOSH is just fine?

  19. allie

    the source tarball for the release you want from github

  20. allie

    (for stanza, I know nothing about strophe)

  21. bent3n

    no worries about strophe for now