-
Notifications
You must be signed in to change notification settings - Fork 16
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
Sample caddyfile for synapse and mas #3614
Comments
and solved again by the following example:
|
My Caddyfile (for full stack including Element Call) is much more compact: https://github.com/rriemann/element-docker-demo/blob/podman-caddy/Caddyfile # for the federation port 8448
{$HOMESERVER_FQDN}, {$HOMESERVER_FQDN}:8448 {
request_body {
max_size 50MB
}
route {
# pass auth to MAS
@mas expression path_regexp('^/_matrix/client/(.*)/(login|logout|refresh)')
reverse_proxy @mas http://mas:8080
# use the generic worker as a synchrotron:
# taken from https://element-hq.github.io/synapse/latest/workers.html#synapseappgeneric_worker
@generic <<CEL
path_regexp('^/_matrix/client/(r0|v3)/sync$') ||
path_regexp('^/_matrix/client/(api/v1|r0|v3)/events$') ||
path_regexp('^/_matrix/client/(api/v1|r0|v3)/initialSync$') ||
path_regexp('^/_matrix/client/(api/v1|r0|v3)/rooms/[^/]+/initialSync$')
CEL
reverse_proxy @generic http://synapse-generic-worker-1:8081
reverse_proxy * http://synapse:8008
}
} However, I am still debugging some issue with MAS. One thing I noticed is that your regexp do not start with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Directly adding directives to caddyfile does not work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For example, element web logs in successfully.
Additional context
Caddyfile
The text was updated successfully, but these errors were encountered: