Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Affine + reverse proxy #9888

Open
shep-k-a opened this issue Jan 24, 2025 · 1 comment
Open

Affine + reverse proxy #9888

shep-k-a opened this issue Jan 24, 2025 · 1 comment

Comments

@shep-k-a
Copy link

shep-k-a commented Jan 24, 2025

Hi, everybody
I use an apache2-based reverse proxy. I already have several domains configured for forwarding to my local VM, so I'll say right away that I'm not considering switching to another reverse proxy yet.
My problem is a synchronization error with the cloud when trying to open via the reverse proxy apache2. Sync freezes forever. I understand that the problem seems to be setting up a reverse proxy, since when accessing from a local network via IP:3010, synchronization occurs instantly.

Can someone suggest the apache2 configuration for a working setup?

Image

Image

<VirtualHost *:80>
        ServerName affine.domain.com
        RewriteEngine On
        RewriteCond %{HTTPS} !=on
        RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{SERVER_NAME} =affine.domain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost *:443>

        #Declare server
        ServerName affine.domain.com

        ProxyPreserveHost On
        ProxyRequests Off

        ProxyPass / http://192.168.XXX.XXX:3010/
        ProxyPassReverse / http://192.168.XXX.XXX:3010/

        SSLProxyEngine On
        
		
        SSLCertificateFile /etc/letsencrypt/live/.....
        SSLCertificateKeyFile /etc/letsencrypt/....
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
@forehalo
Copy link
Member

sync service relies on websocket, s you should make it available through your proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants