spantaleev / matrix-docker-ansible-deploy

🐳 Matrix (An open network for secure, decentralized communication) server setup using Ansible and Docker
GNU Affero General Public License v3.0
4.78k stars 1.03k forks source link

Why Traefik? Sliding Sync Proxy on existing nginx proxy or other webservers #2881

Closed 0x416c69 closed 2 weeks ago

0x416c69 commented 1 year ago

We care a lot about performance and the performance of Traefik is not good enough for us. It's sad that you're no longer gonna maintain nginx, is this decision reversible? If not, is there a guide to setting up sliding sync proxy for either the existing nginx or other better high performance web servers such as OpenLiteSpeed?

4censord commented 1 year ago

Maybe https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/configuring-playbook-own-webserver.md#another-webserver sufficient for you? That should allow you to use any other server, with the downside that you need to configure it yourself.

0x416c69 commented 1 year ago

@4censord I know that page exists but, does this setup also work for sliding proxy?

4censord commented 1 year ago

Well, on the project page itself it lists a snippet for using nginx: https://github.com/matrix-org/sliding-sync#same-hostname

0x416c69 commented 1 year ago

Could it be incompatible with future updates from this repo? Honestly I was afraid to use this big docker ansible deploy project, I guess it's time to move on from it and configure it all by myself, that'd be the safest and best option

4censord commented 1 year ago

If you use the external reverse proxy option, as far as i can tell that should not happen.

satoshinotdead commented 9 months ago

So, using Nginx like reverse proxy with the Ansible script should be safe for future updates or it's not a good deal at all?

I'm with the OP on this, Traefik seems to be not better choice than Nginx but I assume there are cons and pros that I don't mind in the evaluation.

0x416c69 commented 1 month ago

@spantaleev Thanks for not giving a s***, I'm sure you have your reasons

satoshinotdead commented 2 weeks ago

Someone can share a working template with Nginx as reverse proxy?

Happyfeet01 commented 2 weeks ago

I don't know what you have. It works perfectly for me with an Nginx RP on the host. Traefik takes care of everything. Nginx only forwards to the external port of Traefik.

4censord commented 2 weeks ago

Well have you looked at the nginx template included with the sliding sync proxy?

Happyfeet: Their original concern was that traffic is not performant enough for their usecase.

satoshinotdead commented 2 weeks ago

I don't know what you have. It works perfectly for me with an Nginx RP on the host. Traefik takes care of everything. Nginx only forwards to the external port of Traefik.

Hello, that's my actual configuration. I just want to use Nginx for having Matrix with other services and I only need to redirect Matrix subdomains to the services.

Can you share your template?

0x416c69 commented 2 weeks ago

Since the author of the project does not care about our saying in the project (cuz why should he? he's doing it for free/out of fun, some open source contributors☕), I'll probably make my own docker ansible deploy with nginx and openlitespeed and share the repository link if anyone's interested.

Happyfeet01 commented 2 weeks ago

I don't know what you have. It works perfectly for me with an Nginx RP on the host. Traefik takes care of everything. Nginx only forwards to the external port of Traefik.

Hello, that's my actual configuration. I just want to use Nginx for having Matrix with other services and I only need to redirect Matrix subdomains to the services.

Can you share your template?

Sure, but later this Day.