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

Instructions for Caddy reverse proxy #458

Open
Eternumkr opened this issue Aug 21, 2024 · 1 comment
Open

Instructions for Caddy reverse proxy #458

Eternumkr opened this issue Aug 21, 2024 · 1 comment

Comments

@Eternumkr
Copy link

Please add instruction/ short guide for setting up with Caddy.

Thank you.

@S7evinK
Copy link
Collaborator

S7evinK commented Aug 21, 2024

yourserver.tld {
	encode gzip
	header /.well-known/matrix/* Content-Type application/json
	header /.well-known/matrix/* Access-Control-Allow-Origin *
	respond /.well-known/matrix/server {"m.server":"yourserver.tld:443"}
	respond /.well-known/matrix/client {"m.homeserver":{"base_url":"https://yourserver.tld"},"org.matrix.msc3575.proxy":{"url":"https://yourserver.tld/sliding-sync"}}
	reverse_proxy /_matrix/* http://ipOfMatrixServer:8008 {
		transport http {
			compression on
		}
	}
	handle_path /sliding-sync/* {
		reverse_proxy http://ipOfSlidingSyncProxy:8009
	}
}

Something like this is working fine in my setup. (ipOfMatrixServer and ipOfSlidingSyncProxy are the same in my case)

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