Browse Source

Improve the ALLOWED_HOSTS description

Fixes: #499
pull/504/head
Pēteris Caune 4 years ago
parent
commit
6d2c67338c
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      templates/docs/self_hosted_configuration.html
  2. +3
    -3
      templates/docs/self_hosted_configuration.md

+ 3
- 3
templates/docs/self_hosted_configuration.html View File

@ -3,12 +3,12 @@
from environment variables. Below is a list of variables it reads and uses:</p>
<h2 id="ALLOWED_HOSTS"><code>ALLOWED_HOSTS</code></h2>
<p>Default: <code>*</code></p>
<p>A list of strings representing the host/domain names that this site can serve.
You can specify multiple domain names by separating them with commas:</p>
<p>The host/domain names that this site can serve. You can specify multiple domain names
by separating them with commas:</p>
<div class="highlight"><pre><span></span><code><span class="na">ALLOWED_HOSTS</span><span class="o">=</span><span class="s">my-hc.example.org,alternative-name.example.org</span>
</code></pre></div>
<p>Aside from the comma-separated syntax, this is a standard Django setting.
<p>Apart from the comma-separated syntax, this is a standard Django setting.
Read more about it in the
<a href="https://docs.djangoproject.com/en/3.1/ref/settings/#allowed-hosts">Django documentation</a>.</p>
<h2 id="APPRISE_ENABLED"><code>APPRISE_ENABLED</code></h2>


+ 3
- 3
templates/docs/self_hosted_configuration.md View File

@ -7,14 +7,14 @@ from environment variables. Below is a list of variables it reads and uses:
Default: `*`
A list of strings representing the host/domain names that this site can serve.
You can specify multiple domain names by separating them with commas:
The host/domain names that this site can serve. You can specify multiple domain names
by separating them with commas:
```ini
ALLOWED_HOSTS=my-hc.example.org,alternative-name.example.org
```
Aside from the comma-separated syntax, this is a standard Django setting.
Apart from the comma-separated syntax, this is a standard Django setting.
Read more about it in the
[Django documentation](https://docs.djangoproject.com/en/3.1/ref/settings/#allowed-hosts).


Loading…
Cancel
Save