V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
7897894
V2EX  ›  问与答

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

  •  
  •   7897894 · Aug 7, 2023 · 816 views
    This topic created in 996 days ago, the information mentioned may be changed or developed.

    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  
       Aug 17, 2023
    {
    "disable_custom_urls": true,
    "default_server_config": {
    "m.homeserver": {
    "base_url": "https://yourconduitdomain.com"
    },
    "m.identity_server": {
    "base_url": "https://yourconduitdomain.com"
    }
    }
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   984 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 21:55 · PVG 05:55 · LAX 14:55 · JFK 17:55
    ♥ Do have faith in what you're doing.