Galène videoconferencing server discussion list archives
 help / color / mirror / Atom feed
* [Galene] Updating groups in a Galene instance
@ 2021-08-22 13:28 Jeroen van Veen
  2021-08-22 14:00 ` [Galene] " Juliusz Chroboczek
  0 siblings, 1 reply; 6+ messages in thread
From: Jeroen van Veen @ 2021-08-22 13:28 UTC (permalink / raw)
  To: galene

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

Hello,

I have a running Galene instance that reads its groups from galene/groups/*
When I copy galene/groups/foo.json (public) to galene/groups/bar.json (public), I would expect
bar.json to show up in public-groups.json, however this only seem to occur after restarting the Galene
instance. I think I read a while back that groups are automatically updated, as files change?
I'm not sure what I'm doing wrong here. Any idea?

Cheers,

Jeroen

[-- Attachment #2: Type: text/html, Size: 607 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Galene] Re: Updating groups in a Galene instance
  2021-08-22 13:28 [Galene] Updating groups in a Galene instance Jeroen van Veen
@ 2021-08-22 14:00 ` Juliusz Chroboczek
  2021-08-22 14:37   ` Juliusz Chroboczek
  2021-08-23  7:14   ` Jeroen van Veen
  0 siblings, 2 replies; 6+ messages in thread
From: Juliusz Chroboczek @ 2021-08-22 14:00 UTC (permalink / raw)
  To: Jeroen van Veen; +Cc: galene

> I think I read a while back that groups are automatically updated, as
> files change?

The group will be updated the first time the file is needed.  To make the
group appear in public groups, just access the /group/whatever page (you
don't need to actually login, just accessing the page is enough).

If you prefer the command line, just do

  curl -kI https://galene.example.org:8443/group/whatever

or

  wget --no-check-certificate -O /dev/null https://localhost:8443/group/whatever

Shall I make Galene re-check the public groups periodically?  Say, every
20 minutes or so?

-- Juliusz

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Galene] Re: Updating groups in a Galene instance
  2021-08-22 14:00 ` [Galene] " Juliusz Chroboczek
@ 2021-08-22 14:37   ` Juliusz Chroboczek
  2021-08-23  7:14   ` Jeroen van Veen
  1 sibling, 0 replies; 6+ messages in thread
From: Juliusz Chroboczek @ 2021-08-22 14:37 UTC (permalink / raw)
  To: Jeroen van Veen; +Cc: galene

> Shall I make Galene re-check the public groups periodically?  Say, every
> 20 minutes or so?

commit 06f2ecec16e96e95105d8b3230741373ceffbaaf (HEAD -> master, origin/master)
Author: Juliusz Chroboczek <jch@irif.fr>
Date:   Sun Aug 22 16:36:18 2021 +0200

    Update the list of public groups when expiring.
    
    Thanks to Jeroen van Veen for suggesting the feature.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Galene] Re: Updating groups in a Galene instance
  2021-08-22 14:00 ` [Galene] " Juliusz Chroboczek
  2021-08-22 14:37   ` Juliusz Chroboczek
@ 2021-08-23  7:14   ` Jeroen van Veen
  2021-08-23  9:03     ` Juliusz Chroboczek
  1 sibling, 1 reply; 6+ messages in thread
From: Jeroen van Veen @ 2021-08-23  7:14 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene

Hey Juliusz,

Thanks for explaining. Making a http request to the group is fine.
In that case I would trigger a http request to the groups endpoint after
a group has been added. Would that work the same way for deleted groups
and modified groups? Also, would that work the same way with data/passwd?
The credentials in data/passwd may be useful for the administrator account.

-- Jeroen

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Op zondag 22 augustus 2021 om 4:00 PM schreef Juliusz Chroboczek <jch@irif.fr>:

> > I think I read a while back that groups are automatically updated, as
>
> > files change?
>
> The group will be updated the first time the file is needed. To make the
>
> group appear in public groups, just access the /group/whatever page (you
>
> don't need to actually login, just accessing the page is enough).
>
> If you prefer the command line, just do
>
> curl -kI https://galene.example.org:8443/group/whatever
>
> or
>
> wget --no-check-certificate -O /dev/null https://localhost:8443/group/whatever
>
> Shall I make Galene re-check the public groups periodically? Say, every
>
> 20 minutes or so?
>
> -- Juliusz
>
> Galene mailing list -- galene@lists.galene.org
>
> To unsubscribe send an email to galene-leave@lists.galene.org

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Galene] Re: Updating groups in a Galene instance
  2021-08-23  7:14   ` Jeroen van Veen
@ 2021-08-23  9:03     ` Juliusz Chroboczek
  2021-08-23  9:18       ` Jeroen van Veen
  0 siblings, 1 reply; 6+ messages in thread
From: Juliusz Chroboczek @ 2021-08-23  9:03 UTC (permalink / raw)
  To: Jeroen van Veen; +Cc: galene

> In that case I would trigger a http request to the groups endpoint after
> a group has been added. Would that work the same way for deleted groups
> and modified groups?

Yes.

> Also, would that work the same way with data/passwd?

No, data/passwd is not cached, the on-disk file is checked on every
attempt.

-- Juliusz

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Galene] Re: Updating groups in a Galene instance
  2021-08-23  9:03     ` Juliusz Chroboczek
@ 2021-08-23  9:18       ` Jeroen van Veen
  0 siblings, 0 replies; 6+ messages in thread
From: Jeroen van Veen @ 2021-08-23  9:18 UTC (permalink / raw)
  To: Juliusz Chroboczek; +Cc: galene

Ok, then I know how to proceed. Thanks!

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

Op maandag 23 augustus 2021 om 11:03 AM schreef Juliusz Chroboczek <jch@irif.fr>:

> > In that case I would trigger a http request to the groups endpoint after
>
> > a group has been added. Would that work the same way for deleted groups
> >
> > and modified groups?
>
> Yes.
>
> > Also, would that work the same way with data/passwd?
>
> No, data/passwd is not cached, the on-disk file is checked on every
>
> attempt.
>
> -- Juliusz

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-23  9:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-22 13:28 [Galene] Updating groups in a Galene instance Jeroen van Veen
2021-08-22 14:00 ` [Galene] " Juliusz Chroboczek
2021-08-22 14:37   ` Juliusz Chroboczek
2021-08-23  7:14   ` Jeroen van Veen
2021-08-23  9:03     ` Juliusz Chroboczek
2021-08-23  9:18       ` Jeroen van Veen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox