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

Missing apache2 config - configuration unclear #319

Open
floviolleau opened this issue Oct 2, 2023 · 2 comments
Open

Missing apache2 config - configuration unclear #319

floviolleau opened this issue Oct 2, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@floviolleau
Copy link

floviolleau commented Oct 2, 2023

Hi,

Documentation is unclear.

Can you please add a full apache2 configuration?

Thanks

@floviolleau floviolleau changed the title Apache config Missing apache2 config - configuration unclear Oct 2, 2023
@kegsay kegsay added the documentation Improvements or additions to documentation label Oct 2, 2023
@lephisto
Copy link

lephisto commented Jan 2, 2024

Config unclear to me as well:

Can authenticate, then stuck at initial setup, Log:

16:19:40 INF Received connection from unknown access token, querying with homeserver
16:19:40 INF Received connection from unknown access token, querying with homeserver
16:19:41 INF EnsurePolling: new request device_id=X user_id=@user:user.id
16:19:41 INF EnsurePolling: preprocessing done device_id=X user_id=@user:user.id
16:19:41 INF Poller: v2 poll loop started device_id=X since= user_id=@user:user.id
16:33:02 WRN Poller: sync v2 poll returned temporary error error="DoSyncV2: response returned 502 Proxy Error" code=502 device_id=X user_id=@user:user:id
16:33:02 WRN Poller: waiting before next poll device_id=X duration=3s fail-count=1 user_id=@user:user.id

Ideas?

@dfuchss
Copy link

dfuchss commented Jan 5, 2024

For apache 2, you could use something like this:

<VirtualHost *:443>
        ServerName YOUR_DOMAIN
        # Cert Config here ....       


        AllowEncodedSlashes NoDecode
        ProxyPreserveHost On
        RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}

        # Sliding Sync is at 127.0.0.1:8009
        ProxyPass /client http://127.0.0.1:8009/client nocanon
        ProxyPassReverse /client http://127.0.0.1:8009/client
        ProxyPass /_matrix/client/unstable/org.matrix.msc3575/sync http://127.0.0.1:8009/_matrix/client/unstable/org.matrix.msc3575/sync nocanon
        ProxyPassReverse /_matrix/client/unstable/org.matrix.msc3575/sync http://127.0.0.1:8009/_matrix/client/unstable/org.matrix.msc3575/sync

        # Synapse is at 127.0.0.1:8008
        ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
        ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
</VirtualHost>

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

No branches or pull requests

4 participants