* [Galene] Client/server setup?
@ 2022-11-23 20:08 Han So
2022-11-24 10:44 ` [Galene] " Jeroen van Veen
2022-11-24 20:05 ` Juliusz Chroboczek
0 siblings, 2 replies; 6+ messages in thread
From: Han So @ 2022-11-23 20:08 UTC (permalink / raw)
To: galene
Has anyone done client server separation? Meaning the UI is on a different server than the server?
Hans
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Galene] Re: Client/server setup?
2022-11-23 20:08 [Galene] Client/server setup? Han So
@ 2022-11-24 10:44 ` Jeroen van Veen
2022-11-24 20:05 ` Juliusz Chroboczek
1 sibling, 0 replies; 6+ messages in thread
From: Jeroen van Veen @ 2022-11-24 10:44 UTC (permalink / raw)
To: Han So; +Cc: galene
Not yet, although it would be an interesting feature for Pyrite! Currently the admin UI is bound to a
single Galene instance. It syncs Pyrite users with this single instance of Galene. It may not be that difficult to
abstract the syncing part with a list of Galene instances, so users and groups are synced to the right instances.
A group is then bound to a Galene instance. I'll add it as a ticket, but I don't have enough time
to implement it soon (still struggling with a branding ticket).
Jeroen
------- Original Message -------
Op woensdag 23 november 2022 om 9:08 PM schreef Han So <hansolo2218@gmail.com>:
>
>
> Has anyone done client server separation? Meaning the UI is on a different server than the server?
> Hans
> _______________________________________________
> 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: Client/server setup?
2022-11-23 20:08 [Galene] Client/server setup? Han So
2022-11-24 10:44 ` [Galene] " Jeroen van Veen
@ 2022-11-24 20:05 ` Juliusz Chroboczek
2022-11-30 15:11 ` Han So
1 sibling, 1 reply; 6+ messages in thread
From: Juliusz Chroboczek @ 2022-11-24 20:05 UTC (permalink / raw)
To: Han So; +Cc: galene
> Has anyone done client server separation? Meaning the UI is on
> a different server than the server?
Sure. After the HTML/JS code is downloaded, the client connects to the
WebSocket specified in the "endpoint" field of the .status.json file:
$ curl https://galene.org:8443/group/public/.status.json
So you'd simply need to hack the code to provide a URL on a different
server:
https://github.com/jech/galene/blob/master/group/group.go#L1223
You'll probably also need to tweak the CORS headers.
-- Juliusz
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Galene] Re: Client/server setup?
2022-11-24 20:05 ` Juliusz Chroboczek
@ 2022-11-30 15:11 ` Han So
2022-12-02 3:15 ` Han So
0 siblings, 1 reply; 6+ messages in thread
From: Han So @ 2022-11-30 15:11 UTC (permalink / raw)
To: Juliusz Chroboczek; +Cc: galene
Nice - how would having a reverse proxy affect the below?
Hans
> On Nov 24, 2022, at 3:05 PM, Juliusz Chroboczek <jch@irif.fr> wrote:
>
>
>>
>> Has anyone done client server separation? Meaning the UI is on
>> a different server than the server?
>
> Sure. After the HTML/JS code is downloaded, the client connects to the
> WebSocket specified in the "endpoint" field of the .status.json file:
>
> $ curl https://galene.org:8443/group/public/.status.json
>
> So you'd simply need to hack the code to provide a URL on a different
> server:
>
> https://github.com/jech/galene/blob/master/group/group.go#L1223
>
> You'll probably also need to tweak the CORS headers.
>
> -- Juliusz
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Galene] Re: Client/server setup?
2022-11-30 15:11 ` Han So
@ 2022-12-02 3:15 ` Han So
2022-12-02 11:38 ` Juliusz Chroboczek
0 siblings, 1 reply; 6+ messages in thread
From: Han So @ 2022-12-02 3:15 UTC (permalink / raw)
To: Han So; +Cc: Juliusz Chroboczek, galene
Turns out it worked great in editing the endpoint. Reverse proxy setting in the config only applies to the UI side. When putting the “backend” on a different server, it didn’t matter that was behind as different reverse proxy since it was only used in the websocket calls.
Hans
> On Nov 30, 2022, at 10:12 AM, Han So <Hansolo2218@gmail.com> wrote:
>
> Nice - how would having a reverse proxy affect the below?
>
> Hans
>
>> On Nov 24, 2022, at 3:05 PM, Juliusz Chroboczek <jch@irif.fr> wrote:
>>
>>
>>>
>>> Has anyone done client server separation? Meaning the UI is on
>>> a different server than the server?
>>
>> Sure. After the HTML/JS code is downloaded, the client connects to the
>> WebSocket specified in the "endpoint" field of the .status.json file:
>>
>> $ curl https://galene.org:8443/group/public/.status.json
>>
>> So you'd simply need to hack the code to provide a URL on a different
>> server:
>>
>> https://github.com/jech/galene/blob/master/group/group.go#L1223
>>
>> You'll probably also need to tweak the CORS headers.
>>
>> -- Juliusz
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Galene] Re: Client/server setup?
2022-12-02 3:15 ` Han So
@ 2022-12-02 11:38 ` Juliusz Chroboczek
0 siblings, 0 replies; 6+ messages in thread
From: Juliusz Chroboczek @ 2022-12-02 11:38 UTC (permalink / raw)
To: Han So; +Cc: galene
> Turns out it worked great in editing the endpoint.
No CORS issues?
-- Juliusz
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-12-02 14:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 20:08 [Galene] Client/server setup? Han So
2022-11-24 10:44 ` [Galene] " Jeroen van Veen
2022-11-24 20:05 ` Juliusz Chroboczek
2022-11-30 15:11 ` Han So
2022-12-02 3:15 ` Han So
2022-12-02 11:38 ` Juliusz Chroboczek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox