소스 검색

Improve Synapse reverse-proxying Apache examples

Thanks to @ralfi!
pull/249/head
Slavi Pantaleev 6 년 전
부모
커밋
3cb34e6998
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. +6
    -4
      examples/apache/matrix-synapse.conf

+ 6
- 4
examples/apache/matrix-synapse.conf 파일 보기

@@ -40,8 +40,9 @@
ProxyPassMatch ^/_matrix/client/r0/user_directory/search ! ProxyPassMatch ^/_matrix/client/r0/user_directory/search !


# Proxy all remaining traffic to Synapse # Proxy all remaining traffic to Synapse
ProxyPass / http://127.0.0.1:8008/
ProxyPassReverse / http://127.0.0.1:8008/
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://127.0.0.1:8008/_matrix retry=0 nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix


# Map /.well-known/matrix/client for client discovery # Map /.well-known/matrix/client for client discovery
Alias /.well-known/matrix/client /matrix/static-files/.well-known/matrix/client Alias /.well-known/matrix/client /matrix/static-files/.well-known/matrix/client
@@ -111,8 +112,9 @@
# Proxy all remaining traffic to the Synapse port # Proxy all remaining traffic to the Synapse port
# Beware: In this example the local traffic goes to the local synapse server at 127.0.0.1 # Beware: In this example the local traffic goes to the local synapse server at 127.0.0.1
# Of course you can use another IPADRESS in case of using other synapse servers in your network # Of course you can use another IPADRESS in case of using other synapse servers in your network
ProxyPass / http://127.0.0.1:8048/
ProxyPassReverse / http://127.0.0.1:8048/
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://127.0.0.1:8048/_matrix
ProxyPassReverse /_matrix http://127.0.0.1:8048/_matrix


ErrorLog ${APACHE_LOG_DIR}/matrix.DOMAIN-error.log ErrorLog ${APACHE_LOG_DIR}/matrix.DOMAIN-error.log
CustomLog ${APACHE_LOG_DIR}/matrix.DOMAIN-access.log combined CustomLog ${APACHE_LOG_DIR}/matrix.DOMAIN-access.log combined


불러오는 중...
취소
저장