1.
sudo -i mkdir -p /root/data/docker_data/matrix cd /root/data/docker_data/matrix 2.
sudo docker run -it --rm \ -v /root/data/docker_data/matrix/data:/data \ -e SYNAPSE_SERVER_NAME=改成反代后的域名 \ -e SYNAPSE_REPORT_STATS=yes \ matrixdotorg/synapse:latest generate 3.
cd /root/data/docker_data/matrix/data vim homeserver.yaml 4.
# Configuration file for Synapse. # # This is a YAML file: see [1] for a quick introduction. Note in particular # that *indentation is important*: all the elements of a list or dictionary # should have the same indentation. # # [1] https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html # # For more information on how to configure Synapse, including a complete accounting of # each option, go to docs/usage/configuration/config_documentation.md or # https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html server_name: "matrix.gugu.ovh" pid_file: /data/homeserver.pid listeners: - port: 8008 tls: false type: http x_forwarded: true resources: - names: [client, federation] compress: false database: name: sqlite3 args: database: /data/homeserver.db log_config: "/data/matrix.gugu.ovh.log.config" media_store_path: /data/media_store registration_shared_secret: "wwaftxJ&3W3Xkx1y4gYoeoY0p6ywmkx96JZB7rCYg2+_bd~M,t" report_stats: true macaroon_secret_key: "+i6*ZU+ZgxnIjX98@F3F#Oxw*Un*40=58ESt=+HW=SVA@N6ITy" form_secret: "xMGG5P~DD-7Brm19jaYR9v0d.wG:abNxN9ikdWcgNE7Z3F;NmB" signing_key_path: "/data/matrix.gugu.ovh.signing.key" trusted_key_servers: - server_name: "matrix.org" enable_registration: true enable_registration_without_verification: true # vim:ft=yaml 5.
cd /root/data/docker_data/matrix vim docker-compose.yml 6.
version: "3.3" services: synapse: image: "matrixdotorg/synapse:latest" container_name: "matrix_synapse" restart: unless-stopped ports: - 8008:8008 volumes: - "./data:/data" # it will look at the current directory where you save the file and look for the data folder inside environment: VIRTUAL_HOST: "matrix.gugu.ovh" VIRTUAL_PORT: 8008 LETSENCRYPT_HOST: "matrix.gugu.ovh" SYNAPSE_SERVER_NAME: "matrix.gugu.ovh" SYNAPSE_REPORT_STATS: "yes" element-web: ports: - '8009:80' #volumes: # - '/etc/element-web/config.json:/app/config.json' image: vectorim/element-web restart: unless-stopped
感谢您的来访,获取更多精彩文章请收藏本站。
© 版权声明
1. 资源都是经过站长或作者收集测试修改后发布分享。转载请在文内以超链形式注明出处,谢谢合作!
2. 本站除原创内容,其余所有内容均收集自互联网,仅限用于学习和研究目的,本站不对其内容的合法性承担任何责任。如有版权内容,请通知我们或作者删除,其版权均归原作者所有,本站虽力求保存原有版权信息,但因众多资源经多次转载,已无法确定其真实来源,或已将原有信息丢失,所以敬请原作者谅解!
3. 本站用户所发布的一切资源内容不代表本站立场,并不代表本站赞同其观点和对其真实性负责,若您对本站所载资源作品版权归属存有异议,请留言附说明联系邮箱,我们将在第一时间予以处理 ,同时向您表示歉意!为尊重作者版权,请购买原版作品,支持您喜欢的作者,谢谢!
4. 本站一律禁止以任何方式发布或转载任何违法的相关信息,访客如有发现请立即向站长举报;本站资源文件大多存储在云盘,如发现链接或图片失效,请联系作者或站长及时更新。
THE END


测试-晴天生活分享日志">
彩虹易支付使用教程-晴天生活分享日志">



暂无评论内容