V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
7897894
V2EX  ›  程序员

新手,自建了一个 matrix,服务端用的 conduit,有三个问题求指点,先谢过各位

  •  
  •   7897894 · 276 天前 · 1065 次点击
    这是一个创建于 276 天前的主题,其中的信息可能已经有所发展或是发生改变。

    1.

    此配置文件 https://gitlab.com/famedly/conduit/-/blob/next/docker/docker-compose.override.yml 中的第 10 行和第 27 行的<SUBDOMAIN>.<DOMAIN>需要是同一个域名吗?可以写两个不同的域名吗?

    2.

    如果在 docker-compose 中写了

    environment:
                CONDUIT_SERVER_NAME: your.server.name # EDIT THIS
                CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/
                CONDUIT_DATABASE_BACKEND: rocksdb
                CONDUIT_PORT: 6167
                CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
                CONDUIT_ALLOW_REGISTRATION: 'true'
                CONDUIT_ALLOW_FEDERATION: 'true'
                CONDUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
                CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
                #CONDUIT_MAX_CONCURRENT_REQUESTS: 100
                #CONDUIT_LOG: warn,rocket=off,_=off,sled=off
                CONDUIT_ADDRESS: 0.0.0.0
                CONDUIT_CONFIG: '' # Ignore this
    

    请问:是不是就不用写 https://gitlab.com/famedly/conduit/-/blob/next/conduit-example.toml 了?我看 conduit-example.toml 和 environment 中定义的参数好像是一样的

    3.

    在官方的 docker 部署指南中,这部分 https://gitlab.com/famedly/conduit/-/blob/next/docker/README.md#use-traefik-as-proxy

    内容中的第 4 条:Uncomment the element-web service if you want to host your own Element Web Client and create a element_config.json.

    请问:这个element_config.json示例文件在哪?不知道怎么写。另外想问一下:是不是写了element_config.json之后就可以打开 element-web 自动连接后端的 conduit 了吗?就不用在网页上手动设置服务器参数了吗?

    4 条回复    2024-02-29 12:45:52 +08:00
    hOkQpVQn
        1
    hOkQpVQn  
       275 天前
    1. 大概就写 your.server.name
    your 对应的是 <SUBDOMAIN>,server.name 对应的是 DOMAIN ,确实你可能需要添加几个 A 记录来创建几个子域名
    2. 大概是不需要的
    那个文件前 5 行就是
    ```
    # =============================================================================
    # This is the official example config for Conduit.
    # If you use it for your server, you will need to adjust it to your own needs.
    # At the very least, change the server_name field!
    # =============================================================================
    ```
    3.
    首先,这个 element_config.json 是 element-web 服务的配置文件,如果你写的对了之后,就可以打开你的 element-web ,就能默认连接你的 conduit 了

    https://gitlab.com/search?search=element-web&nav_source=navbar&project_id=22083768&group_id=4616224&search_code=true&repository_ref=next

    第一个搜到的就是这个说明文档
    ### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md

    说明文档里写了
    `For a good example of a production-tuned config, see https://app.element.io/config.json`
    不过大概率是你只要把那个 homeserver 的地址填上就行了其他的都不需要管

    大概在这里很难能获得 v 友的帮助吧,毕竟知道而且认可 matrix 协议的 v 友也不多,推荐去 #conduit:fachschaften.org 里可以直接问问,实在不行先注册一个 matrix.org 的临时账户也可以的

    如果搭成了敲我一下,或者还有啥问题,进 https://matrix.to/#/!AMMXpAiyhqICqpGfOo:matrix.org?via=matrix.org
    7897894
        2
    7897894  
    OP
       275 天前
    @hOkQpVQn 感谢大佬 回去试试 请问 v 友都用啥自建 im 呢?都喜欢用啥啊?求推荐
    asuraa
        3
    asuraa  
       265 天前
    我刚用了这个 挺好用的 webui 也好用
    asuraa
        4
    asuraa  
       69 天前
    conduit 还是不行 功能缺失太多了 我换成 synapse 了,非常稳定好用
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3659 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:43 · PVG 08:43 · LAX 17:43 · JFK 20:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.