V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
7897894
V2EX  ›  问与答

自建了一个 matrix,服务端用的 conduit,新手一枚,有三个问题不明白,求指点

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

    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 了吗?就不用在网页上手动设置服务器参数了吗?

    asuraa
        1
    asuraa  
       290 天前
    {
    "disable_custom_urls": true,
    "default_server_config": {
    "m.homeserver": {
    "base_url": "https://yourconduitdomain.com"
    },
    "m.identity_server": {
    "base_url": "https://yourconduitdomain.com"
    }
    }
    }
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   856 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:35 · PVG 04:35 · LAX 13:35 · JFK 16:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.