Re: Are relayd and httpd my future buddy?

2020-11-01 Thread Ashlen
On 20/10/30 23:29, Lars Bonnesen wrote:
> If I can use relayd for this, could someone please share a relayd.conf
> example for me?
>
> Regards, Lars.

In addition to what others have said, remember to check /etc/examples,
as there are entries for both httpd.conf(5) and relayd.conf(5).

--
https://amissing.link



Re: Are relayd and httpd my future buddy?

2020-10-31 Thread edgar
https://www.amazon.com/Relayd-Httpd-Mastery-Book-11-ebook/dp/B07171352M
Good book.
Edgar

On Oct 31, 2020 11:45 AM, Brian Brombacher  wrote:



  > On Oct 30, 2020, at 6:32 PM, Lars Bonnesen
   wrote:
  >
  > I have been using a combination of Apache, mod_proxy and
  letsencrypt to set
  > up different loadbalancing/https offload solution like this:
  >
  > https://URL1[Apache
  http_1]
  > ---|
  > https://URL2 [Apache https, mod_proxy, and letsencrypt] --- [Apache
  http_2}
  > ---|-- SQL
  > https://URL3[Apache
  http_3]
  > ---|
  >
  > Of coarse running on OpenBSD
  >
  > The URLS are typically sharing one IP and in theory the https
  offload could
  > also be load balanced.
  >
  > Even though the above setup works, I would like to use as much of
  obsd base
  > as possible and less packages. Thinking of httpd, letsencrypt and
  relayd -
  > but can it accomplish my goals about sharing IPs, loadbalancing
  while also
  > doing SSL offload? Or do I need to stick with Apache or maybe look
  at
  > another solution like haproxy?
  >
  > If I can use relayd for this, could someone please share a
  relayd.conf
  > example for me?
  >
  > Regards, Lars.

  If you’re only using mod_proxy for load balancing, yes you can do
  this with httpd and relayd.

  I don’t have a relayd.conf sample for you but there are plenty from
  the mailing list.


Re: Are relayd and httpd my future buddy?

2020-10-31 Thread Brian Brombacher



> On Oct 30, 2020, at 6:32 PM, Lars Bonnesen  wrote:
> 
> I have been using a combination of Apache, mod_proxy and letsencrypt to set
> up different loadbalancing/https offload solution like this:
> 
> https://URL1[Apache http_1]
> ---|
> https://URL2 [Apache https, mod_proxy, and letsencrypt] --- [Apache http_2}
> ---|-- SQL
> https://URL3[Apache http_3]
> ---|
> 
> Of coarse running on OpenBSD
> 
> The URLS are typically sharing one IP and in theory the https offload could
> also be load balanced.
> 
> Even though the above setup works, I would like to use as much of obsd base
> as possible and less packages. Thinking of httpd, letsencrypt and relayd -
> but can it accomplish my goals about sharing IPs, loadbalancing while also
> doing SSL offload? Or do I need to stick with Apache or maybe look at
> another solution like haproxy?
> 
> If I can use relayd for this, could someone please share a relayd.conf
> example for me?
> 
> Regards, Lars.

If you’re only using mod_proxy for load balancing, yes you can do this with 
httpd and relayd.

I don’t have a relayd.conf sample for you but there are plenty from the mailing 
list.



Are relayd and httpd my future buddy?

2020-10-30 Thread Lars Bonnesen
I have been using a combination of Apache, mod_proxy and letsencrypt to set
up different loadbalancing/https offload solution like this:

https://URL1[Apache http_1]
---|
https://URL2 [Apache https, mod_proxy, and letsencrypt] --- [Apache http_2}
---|-- SQL
https://URL3[Apache http_3]
---|

Of coarse running on OpenBSD

The URLS are typically sharing one IP and in theory the https offload could
also be load balanced.

Even though the above setup works, I would like to use as much of obsd base
as possible and less packages. Thinking of httpd, letsencrypt and relayd -
but can it accomplish my goals about sharing IPs, loadbalancing while also
doing SSL offload? Or do I need to stick with Apache or maybe look at
another solution like haproxy?

If I can use relayd for this, could someone please share a relayd.conf
example for me?

Regards, Lars.