WOW! it works, super happy right now, after many (interesting) hours trying to make it work with a lot of not-so-useful help from chatgpt ;)
Maybe then I will not leave openBSD... I simply have to improve my skills :) Thanks Kirill!!! Any good resourse you'd like to point me to, to improve on this stuff? I know you guessed it by now: I have almost zero knowledge on the server side of things :) I could not find much online on how to write these two guys: httpd.conf and relayd.conf, and a bit surprinsigly - at least to me - chatgpt didn't get the syntax right either, no matter how detailed my prompt was. On Fri, Apr 19, 2024, at 2:01 PM, Kirill A. Korinsky wrote: > On Fri, 19 Apr 2024 13:30:47 +0200, > Luca Leone wrote: > > > > I'll keep working on it, but after a couple of days spent on this stuff I'm > > starting to think that maybe to serve my node app there should be an easier > > way than openbsd ;) > > > > I guess you mean someting like that? > > table <app> { 127.0.0.1 } > > http protocol https { > match request header append "X-Forwarded-For" value "$REMOTE_ADDR" > > tls keypair birbi.biz:443 > pass request forward to <app> > } > > relay https { > listen on egress port https tls > protocol https > > forward to <app> port 3000 > } > > -- > wbr, Kirill >