mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 15:08:49 +03:00
deploy: e87499b3f4
This commit is contained in:
parent
47c8d20a2d
commit
16db5bf999
4 changed files with 22 additions and 2 deletions
|
@ -3749,6 +3749,16 @@ messages from the database after 5 minutes, rather than 5 months.</p>
|
|||
</ul>
|
||||
<p>For example, setting <code>max_avatar_size: 10M</code> means that Synapse will not accept files larger than 10,485,760 bytes
|
||||
for a user avatar.</p>
|
||||
<h2 id="config-validation"><a class="header" href="#config-validation">Config Validation</a></h2>
|
||||
<p>The configuration file can be validated with the following command:</p>
|
||||
<pre><code class="language-bash">python -m synapse.config read <config key to print> -c <path to config>
|
||||
</code></pre>
|
||||
<p>To validate the entire file, omit <code>read <config key to print></code>:</p>
|
||||
<pre><code class="language-bash">python -m synapse.config -c <path to config>
|
||||
</code></pre>
|
||||
<p>To see how to set other options, check the help reference:</p>
|
||||
<pre><code class="language-bash">python -m synapse.config --help
|
||||
</code></pre>
|
||||
<h3 id="yaml"><a class="header" href="#yaml">YAML</a></h3>
|
||||
<p>The configuration file is a <a href="https://yaml.org/">YAML</a> file, which means that certain syntax rules
|
||||
apply if you want your config file to be read properly. A few helpful things to know:</p>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -176,6 +176,16 @@ messages from the database after 5 minutes, rather than 5 months.</p>
|
|||
</ul>
|
||||
<p>For example, setting <code>max_avatar_size: 10M</code> means that Synapse will not accept files larger than 10,485,760 bytes
|
||||
for a user avatar.</p>
|
||||
<h2 id="config-validation"><a class="header" href="#config-validation">Config Validation</a></h2>
|
||||
<p>The configuration file can be validated with the following command:</p>
|
||||
<pre><code class="language-bash">python -m synapse.config read <config key to print> -c <path to config>
|
||||
</code></pre>
|
||||
<p>To validate the entire file, omit <code>read <config key to print></code>:</p>
|
||||
<pre><code class="language-bash">python -m synapse.config -c <path to config>
|
||||
</code></pre>
|
||||
<p>To see how to set other options, check the help reference:</p>
|
||||
<pre><code class="language-bash">python -m synapse.config --help
|
||||
</code></pre>
|
||||
<h3 id="yaml"><a class="header" href="#yaml">YAML</a></h3>
|
||||
<p>The configuration file is a <a href="https://yaml.org/">YAML</a> file, which means that certain syntax rules
|
||||
apply if you want your config file to be read properly. A few helpful things to know:</p>
|
||||
|
|
Loading…
Reference in a new issue