Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit bb9246e

Browse files
authored
Merge pull request #2131 from matthewjwolff/develop
web_client_location documentation fix
2 parents c84770b + d4040e9 commit bb9246e

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,11 @@ ArchLinux
354354
---------
355355

356356
The quickest way to get up and running with ArchLinux is probably with the community package
357-
https://www.archlinux.org/packages/community/any/matrix-synapse/, which should pull in all
358-
the necessary dependencies.
357+
https://www.archlinux.org/packages/community/any/matrix-synapse/, which should pull in most of
358+
the necessary dependencies. If the default web client is to be served (enabled by default in
359+
the generated config),
360+
https://www.archlinux.org/packages/community/any/python2-matrix-angular-sdk/ will also need to
361+
be installed.
359362

360363
Alternatively, to install using pip a few changes may be needed as ArchLinux
361364
defaults to python 3, but synapse currently assumes python 2.7 by default:

synapse/app/homeserver.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from synapse.config._base import ConfigError
2626

2727
from synapse.python_dependencies import (
28-
check_requirements, DEPENDENCY_LINKS
28+
check_requirements, CONDITIONAL_REQUIREMENTS
2929
)
3030

3131
from synapse.rest import ClientRestResource
@@ -92,7 +92,7 @@ def build_resource_for_web_client(hs):
9292
"\n"
9393
"You can also disable hosting of the webclient via the\n"
9494
"configuration option `web_client`\n"
95-
% {"dep": DEPENDENCY_LINKS["matrix-angular-sdk"]}
95+
% {"dep": CONDITIONAL_REQUIREMENTS["web_client"].keys()[0]}
9696
)
9797
syweb_path = os.path.dirname(syweb.__file__)
9898
webclient_path = os.path.join(syweb_path, "webclient")

synapse/config/server.py

+6
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ def default_config(self, server_name, **kwargs):
144144
# Whether to serve a web client from the HTTP/HTTPS root resource.
145145
web_client: True
146146
147+
# The root directory to server for the above web client.
148+
# If left undefined, synapse will serve the matrix-angular-sdk web client.
149+
# Make sure matrix-angular-sdk is installed with pip if web_client is True
150+
# and web_client_location is undefined
151+
# web_client_location: "/path/to/web/root"
152+
147153
# The public-facing base URL for the client API (not including _matrix/...)
148154
# public_baseurl: https://example.com:8448/
149155

0 commit comments

Comments
 (0)