btcpayserver-docker icon indicating copy to clipboard operation
btcpayserver-docker copied to clipboard

Using OpenLiteSpeed as a reverse proxy

Open oureco123 opened this issue 3 years ago • 5 comments

Hello! I'm runnung my website on my vps through a domain domain.tld with the help of CyberPanel (which uses OpenLiteSpeed as a web server). I'd like to use btcpay.domain.tld to handle the requests for btcpayserver, however, I'd need to set up a reverse proxy.

I haven't seen this documented anywhere, and i couldn't manage to get the OpenLiteSpeed docs to run. I either end up with Error 503 or a straight up blank page.

Any help is appreciated.

oureco123 avatar Mar 01 '21 22:03 oureco123

@oureco123 I would suggest you go with a nginx proxy, or addapt the nginx proxy to your needs. Officially Nginx and Traffik are suppported in BTCPay. Hope this helps. Maybe look for nginx to openlitespeed migration, or or traffik to ols migration.

uhlhosting avatar Mar 02 '21 06:03 uhlhosting

@oureco123 I would suggest you go with a nginx proxy, or addapt the nginx proxy to your needs. Officially Nginx and Traffik are suppported in BTCPay. Hope this helps. Maybe look for nginx to openlitespeed migration, or or traffik to ols migration.

You mean use nginx as main server and reverse proxy it to the openlitespeed server? Or do you mean move/migrate everything to nginx and get rid of openlitespeed? (i would rather not do the second one)

oureco123 avatar Mar 02 '21 07:03 oureco123

@oureco123 i meant to find a way to migrate the current nginx template into a OLS type, there are examples for nginx and traffik to have it working, so one of the two might help, OLS is not supported by default, yet that does not mean that if you get your code right wont work.

Or seeking online for such guess did not replied much results?

I use nginx myself, you could even submit a new PR if you get this working, and people would find it usefull, other than this, would say it relies on your ability to take existig configs and translate it into OLS config, if that makes sense.

uhlhosting avatar Mar 02 '21 14:03 uhlhosting

@uhlhosting I think I know what you mean, however i'm not too experienced to be able to do that. Thank you anyway.

oureco123 avatar Mar 02 '21 15:03 oureco123

In that case best you can do its use clean nginx or traffik thats shipped with the btcpay docker. Or seek more online for someone who might had addapted that config to Ols.

uhlhosting avatar Mar 02 '21 15:03 uhlhosting