Matrix Docker Ansible eploy
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

397 行
14 KiB

  1. # SOME DESCRIPTIVE TITLE.
  2. # Copyright (C) 2018-2024, Slavi Pantaleev, Aine Etke, MDAD community
  3. # members
  4. # This file is distributed under the same license as the
  5. # matrix-docker-ansible-deploy package.
  6. # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
  7. #
  8. #, fuzzy
  9. msgid ""
  10. msgstr ""
  11. "Project-Id-Version: matrix-docker-ansible-deploy \n"
  12. "Report-Msgid-Bugs-To: \n"
  13. "POT-Creation-Date: 2024-12-16 12:05+0900\n"
  14. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  15. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  16. "Language: jp\n"
  17. "Language-Team: jp <LL@li.org>\n"
  18. "MIME-Version: 1.0\n"
  19. "Content-Type: text/plain; charset=utf-8\n"
  20. "Content-Transfer-Encoding: 8bit\n"
  21. "Generated-By: Babel 2.16.0\n"
  22. #: ../../../docs/configuring-well-known.md:1
  23. msgid "Configuring Service Discovery via .well-known"
  24. msgstr ""
  25. #: ../../../docs/configuring-well-known.md:3
  26. msgid ""
  27. "This documentation page explains how to configure Service discovery via "
  28. "`/.well-known/` files. Service discovery is a way for the Matrix network "
  29. "to discover where a Matrix server is."
  30. msgstr ""
  31. #: ../../../docs/configuring-well-known.md:5
  32. msgid "Types of well-known service discovery mechanism"
  33. msgstr ""
  34. #: ../../../docs/configuring-well-known.md:7
  35. msgid ""
  36. "There are 3 types of well-known service discovery mechanism that Matrix "
  37. "makes use of:"
  38. msgstr ""
  39. #: ../../../docs/configuring-well-known.md:9
  40. msgid ""
  41. "(important) **Federation Server discovery** (`/.well-"
  42. "known/matrix/server`) -- assists other servers in the Matrix network with"
  43. " finding your server. With the default playbook configuration specified "
  44. "on the sample `vars.yml` ([`examples/vars.yml`](../examples/vars.yml)), "
  45. "this is necessary for federation to work. Without a proper configuration,"
  46. " your server will effectively not be part of the Matrix network."
  47. msgstr ""
  48. #: ../../../docs/configuring-well-known.md:11
  49. msgid ""
  50. "(less important) **Client Server discovery** (`/.well-"
  51. "known/matrix/client`) -- assists programs that you use to connect to your"
  52. " server (e.g. Element Web), so that they can make it more convenient for "
  53. "you by automatically configuring the \"Homeserver URL\" and \"Identity "
  54. "Server URL\" addresses."
  55. msgstr ""
  56. #: ../../../docs/configuring-well-known.md:13
  57. msgid ""
  58. "(optional) **Support service discovery** (`/.well-known/matrix/support`) "
  59. "-- returns server admin contact and support page of the domain."
  60. msgstr ""
  61. #: ../../../docs/configuring-well-known.md:15
  62. msgid "Federation Server Discovery"
  63. msgstr ""
  64. #: ../../../docs/configuring-well-known.md:17
  65. msgid ""
  66. "All services created by this playbook are meant to be installed on their "
  67. "own server (such as `matrix.example.com`), instead of the base domain "
  68. "(`example.com`)."
  69. msgstr ""
  70. #: ../../../docs/configuring-well-known.md:19
  71. msgid ""
  72. "As [per the Server-Server "
  73. "specification](https://matrix.org/docs/spec/server_server/r0.1.0.html"
  74. "#server-discovery), in order to use a short Matrix user ID like "
  75. "`@alice:example.com` instead of `@alice:matrix.example.com` while hosting"
  76. " services on a subdomain such as `matrix.example.com`, the Matrix network"
  77. " needs to be instructed of [server delegation](howto-server-"
  78. "delegation.md) / redirection."
  79. msgstr ""
  80. #: ../../../docs/configuring-well-known.md:21
  81. msgid ""
  82. "For simplicity reasons, this playbook recommends you to set up server "
  83. "delegation via a `/.well-known/matrix/server` file."
  84. msgstr ""
  85. #: ../../../docs/configuring-well-known.md:23
  86. msgid ""
  87. "If you set up the DNS SRV record for server delegation instead, take a "
  88. "look at this documentation for more information: [Server Delegation via a"
  89. " DNS SRV record (advanced)](howto-server-delegation.md#server-delegation-"
  90. "via-a-dns-srv-record-advanced)"
  91. msgstr ""
  92. #: ../../../docs/configuring-well-known.md:25
  93. msgid "Client Server Discovery"
  94. msgstr ""
  95. #: ../../../docs/configuring-well-known.md:27
  96. msgid ""
  97. "Client Server Service discovery lets various client programs which "
  98. "support it, to receive a full user ID (e.g. `@alice:example.com`) and "
  99. "determine where the Matrix server is automatically (e.g. "
  100. "`https://matrix.example.com`)."
  101. msgstr ""
  102. #: ../../../docs/configuring-well-known.md:29
  103. msgid ""
  104. "This lets you (and your users) easily connect to your Matrix server "
  105. "without having to customize connection URLs. When using client programs "
  106. "that support it, you won't need to point them to "
  107. "`https://matrix.example.com` in Custom Server options manually anymore. "
  108. "The connection URL would be discovered automatically from your full "
  109. "username."
  110. msgstr ""
  111. #: ../../../docs/configuring-well-known.md:31
  112. msgid ""
  113. "Without /.well-known/matrix/client, the client will make the wrong "
  114. "\"homeserver URL\" assumption (it will default to using "
  115. "https://example.com, and users will need to notice and adjust it manually"
  116. " (changing it to https://matrix.example.com)."
  117. msgstr ""
  118. #: ../../../docs/configuring-well-known.md:33
  119. msgid ""
  120. "As [per the Client-Server "
  121. "specification](https://matrix.org/docs/spec/client_server/r0.4.0.html"
  122. "#server-discovery) Matrix does Client Server service discovery using a "
  123. "`/.well-known/matrix/client` file hosted on the base domain (e.g. "
  124. "`example.com`)."
  125. msgstr ""
  126. #: ../../../docs/configuring-well-known.md:35
  127. msgid ""
  128. "However, this playbook installs your Matrix server on another domain "
  129. "(e.g. `matrix.example.com`) and not on the base domain (e.g. "
  130. "`example.com`), so it takes a little extra manual effort to set up the "
  131. "file."
  132. msgstr ""
  133. #: ../../../docs/configuring-well-known.md:37
  134. msgid "(Optional) Support Service Discovery"
  135. msgstr ""
  136. #: ../../../docs/configuring-well-known.md:39
  137. msgid ""
  138. "[MSC 1929](https://github.com/matrix-org/matrix-spec-"
  139. "proposals/pull/1929), which was added to [Matrix Specification version "
  140. "v1.10](https://spec.matrix.org/v1.10/client-server-api/#getwell-"
  141. "knownmatrixsupport), specifies a way to add contact details of admins, as"
  142. " well as a link to a support page for users who are having issues with "
  143. "the service. Automated services may also index this information and use "
  144. "it for abuse reports, etc."
  145. msgstr ""
  146. #: ../../../docs/configuring-well-known.md:41
  147. msgid ""
  148. "To enable it, add the following configuration to your "
  149. "`inventory/host_vars/matrix.example.com/vars.yml` file:"
  150. msgstr ""
  151. #: ../../../docs/configuring-well-known.md:62
  152. msgid "Installing well-known files on the base domain's server"
  153. msgstr ""
  154. #: ../../../docs/configuring-well-known.md:64
  155. msgid ""
  156. "To implement the service discovery mechanisms, your base domain's server "
  157. "(e.g. `example.com`) needs to run an HTTPS-capable webserver."
  158. msgstr ""
  159. #: ../../../docs/configuring-well-known.md:66
  160. msgid "Serving the base domain from the Matrix server via the playbook"
  161. msgstr ""
  162. #: ../../../docs/configuring-well-known.md:68
  163. msgid ""
  164. "If you don't have a server for your base domain at all, you can use the "
  165. "Matrix server for this. If you don't need the base domain (e.g. "
  166. "`example.com`) for anything else (hosting a website, etc.), you can point"
  167. " it to the Matrix server's IP address and tell the playbook to configure "
  168. "it."
  169. msgstr ""
  170. #: ../../../docs/configuring-well-known.md:70
  171. msgid ""
  172. "**This is the easiest way to set up well-known serving** -- letting the "
  173. "playbook handle the whole base domain for you (including SSL "
  174. "certificates, etc.) and take care to serve the appropriate well-known "
  175. "files automatically."
  176. msgstr ""
  177. #: ../../../docs/configuring-well-known.md:72
  178. msgid ""
  179. "If you decide to go this route, you don't need to read ahead in this "
  180. "document. Instead, go to [Serving the base domain](configuring-playbook-"
  181. "base-domain-serving.md) to learn how the playbook can help you set it up."
  182. msgstr ""
  183. #: ../../../docs/configuring-well-known.md:74
  184. msgid ""
  185. "However, if you need to use the base domain for other things, this method"
  186. " is less suitable than the one explained below."
  187. msgstr ""
  188. #: ../../../docs/configuring-well-known.md:76
  189. msgid "Manually installing well-known files on the base domain's server"
  190. msgstr ""
  191. #: ../../../docs/configuring-well-known.md:78
  192. msgid ""
  193. "If you're managing the base domain by yourself somehow, you'll need to "
  194. "set up serving of some `/.well-known/matrix/*` files from it via HTTPS."
  195. msgstr ""
  196. #: ../../../docs/configuring-well-known.md:80
  197. msgid ""
  198. "To make things easy for you to set up, this playbook generates and hosts "
  199. "a few well-known files on the Matrix domain's server. The files are "
  200. "generated at the `/matrix/static-files/public/.well-known/matrix/` path "
  201. "on the server and hosted at URLs like `https://matrix.example.com/.well-"
  202. "known/matrix/server` and `https://matrix.example.com/.well-"
  203. "known/matrix/client`, even though this is the wrong place to host them."
  204. msgstr ""
  205. #: ../../../docs/configuring-well-known.md:82
  206. msgid ""
  207. "You have two options when it comes to installing the files on the base "
  208. "domain's server:"
  209. msgstr ""
  210. #: ../../../docs/configuring-well-known.md:84
  211. msgid "(Option 1): **Copying the files manually** to your base domain's server"
  212. msgstr ""
  213. #: ../../../docs/configuring-well-known.md:86
  214. msgid ""
  215. "**Hint**: Option 2 is generally a better way to do this. Make sure to go "
  216. "with it, if possible."
  217. msgstr ""
  218. #: ../../../docs/configuring-well-known.md:88
  219. msgid "All you need to do is:"
  220. msgstr ""
  221. #: ../../../docs/configuring-well-known.md:90
  222. msgid ""
  223. "copy `/.well-known/matrix/server` and `/.well-known/matrix/client` from "
  224. "the Matrix server (e.g. `matrix.example.com`) to your base domain's "
  225. "server (`example.com`). You can find these files in the `/matrix/static-"
  226. "files/.well-known/matrix` directory on the Matrix server. They are also "
  227. "accessible on URLs like this: `https://matrix.example.com/.well-"
  228. "known/matrix/server` (same for `client`)."
  229. msgstr ""
  230. #: ../../../docs/configuring-well-known.md:92
  231. msgid ""
  232. "set up the server at your base domain (e.g. `example.com`) so that it "
  233. "adds an extra HTTP header when serving the `/.well-known/matrix/client` "
  234. "file. [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS), the"
  235. " `Access-Control-Allow-Origin` header should be set with a value of `*`. "
  236. "If you don't do this step, web-based Matrix clients (like Element Web) "
  237. "may fail to work. Setting up headers for the `/.well-known/matrix/server`"
  238. " file is not necessary, as this file is only consumed by non-browsers, "
  239. "which don't care about CORS."
  240. msgstr ""
  241. #: ../../../docs/configuring-well-known.md:94
  242. msgid ""
  243. "This is relatively easy to do and possibly your only choice if you can "
  244. "only host static files from the base domain's server. It is, however, **a"
  245. " little fragile**, as future updates performed by this playbook may "
  246. "regenerate the well-known files and you may need to notice that and copy "
  247. "them over again."
  248. msgstr ""
  249. #: ../../../docs/configuring-well-known.md:96
  250. msgid ""
  251. "(Option 2): **Setting up reverse-proxying** of the well-known files from "
  252. "the base domain's server to the Matrix server"
  253. msgstr ""
  254. #: ../../../docs/configuring-well-known.md:98
  255. msgid "This option is less fragile and generally better."
  256. msgstr ""
  257. #: ../../../docs/configuring-well-known.md:100
  258. msgid ""
  259. "On the base domain's server (e.g. `example.com`), you can set up reverse-"
  260. "proxying, so that any access for the `/.well-known/matrix` location "
  261. "prefix is forwarded to the Matrix domain's server (e.g. "
  262. "`matrix.example.com`)."
  263. msgstr ""
  264. #: ../../../docs/configuring-well-known.md:102
  265. msgid ""
  266. "With this method, you **don't need** to add special HTTP headers for "
  267. "[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) reasons "
  268. "(like `Access-Control-Allow-Origin`), because your Matrix server (where "
  269. "requests ultimately go) will be configured by this playbook correctly."
  270. msgstr ""
  271. #: ../../../docs/configuring-well-known.md:104
  272. msgid "**For nginx**, it would be something like this:"
  273. msgstr ""
  274. #: ../../../docs/configuring-well-known.md:121
  275. msgid "**For Apache2**, it would be something like this:"
  276. msgstr ""
  277. #: ../../../docs/configuring-well-known.md:135
  278. msgid "**For Caddy 2**, it would be something like this:"
  279. msgstr ""
  280. #: ../../../docs/configuring-well-known.md:145
  281. msgid "**For HAProxy**, it would be something like this:"
  282. msgstr ""
  283. #: ../../../docs/configuring-well-known.md:164
  284. msgid ""
  285. "**For Netlify**, configure a "
  286. "[redirect](https://docs.netlify.com/routing/redirects/) using a "
  287. "`_redirects` file in the [publish directory](https://docs.netlify.com"
  288. "/configure-builds/overview/#definitions) with contents like this:"
  289. msgstr ""
  290. #: ../../../docs/configuring-well-known.md:170
  291. msgid "**For AWS CloudFront**"
  292. msgstr ""
  293. #: ../../../docs/configuring-well-known.md:172
  294. msgid "Add a custom origin with matrix.example.com to your distribution"
  295. msgstr ""
  296. #: ../../../docs/configuring-well-known.md:173
  297. msgid ""
  298. "Add two behaviors, one for `.well-known/matrix/client` and one for "
  299. "`.well-known/matrix/server` and point them to your new origin."
  300. msgstr ""
  301. #: ../../../docs/configuring-well-known.md:175
  302. msgid "Make sure to:"
  303. msgstr ""
  304. #: ../../../docs/configuring-well-known.md:177
  305. msgid ""
  306. "**replace `example.com`** in the server configuration with your actual "
  307. "domain name"
  308. msgstr ""
  309. #: ../../../docs/configuring-well-known.md:178
  310. msgid ""
  311. "and: to **do this for the HTTPS-enabled server block**, as that's where "
  312. "Matrix expects the file to be"
  313. msgstr ""
  314. #: ../../../docs/configuring-well-known.md:180
  315. msgid "Confirming it works"
  316. msgstr ""
  317. #: ../../../docs/configuring-well-known.md:182
  318. msgid ""
  319. "No matter which method you've used to set up the well-known files, if "
  320. "you've done it correctly you should be able to see a JSON file at these "
  321. "URLs:"
  322. msgstr ""
  323. #: ../../../docs/configuring-well-known.md:184
  324. msgid "`https://example.com/.well-known/matrix/server`"
  325. msgstr ""
  326. #: ../../../docs/configuring-well-known.md:185
  327. msgid "`https://example.com/.well-known/matrix/client`"
  328. msgstr ""
  329. #: ../../../docs/configuring-well-known.md:186
  330. msgid "`https://example.com/.well-known/matrix/support`"
  331. msgstr ""
  332. #: ../../../docs/configuring-well-known.md:188
  333. msgid ""
  334. "You can also check if everything is configured correctly, by [checking if"
  335. " services work](maintenance-checking-services.md)."
  336. msgstr ""