Re: RFH: Add prosody service

2016-12-04 Thread Ludovic Courtès
Hello Clément, Clément Lassieur skribis: >>> B. Common settings should have a default value in prosody-configuration, >>>and be disabled by default in the list of virtualhost-configurations. >> >> Oh, I see. >> >>> I found two ways to solve this: >>> >>> 1. One uses "eval" to transform the i

Re: RFH: Add prosody service

2016-12-02 Thread Clément Lassieur
Hi Ludovic, >> Here are my problems. >> >> A. A virtualhost-configuration has a lot in common with >>prosody-configuration, and I don't want to repeat stuff. > > What about a record that would have > ‘global-1’…‘global-N’ fields, plus a ‘virtual-host-settings’ that would > aggregate a ? That

Re: RFH: Add prosody service

2016-11-28 Thread Ludovic Courtès
Hi! Clément Lassieur skribis: > I'm actually working on the Prosody service, and I am struggling with a > few things. What I did works, but some configurations are probably > missing. I'm not sure I'm doing it the right way, so I would appreciate > a few comments before I go further. > > Here

Re: RFH: Add prosody service

2016-11-28 Thread Hartmut Goebel
Am 26.11.2016 um 18:15 schrieb Clément Lassieur: > So in Scheme, I implemented this as a prosody-configuration > (representing the whole file), containing: > - global settings, > - common settings, > - a list of virtualhost-configuration. I'm interested in how to implement this, too. Some e

RFH: Add prosody service

2016-11-26 Thread Clément Lassieur
Hello, I'm actually working on the Prosody service, and I am struggling with a few things. What I did works, but some configurations are probably missing. I'm not sure I'm doing it the right way, so I would appreciate a few comments before I go further. Here is how a typical .lua Prosody config