mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
fix(settings): a network in ALLOWED_HOSTS stops the start
Django matches the request's host with each ALLOWED_HOSTS entry as a name: 192.0.2.0/24 was accepted and matched nothing, so requests to the addresses in it got 400 with no sign why. Such an entry now raises ImproperlyConfigured, naming it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
9a00239a86
commit
28fc394b9e
3 changed files with 9 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ If libvirt warns `Host SMBIOS information is not available`, install `dmidecode`
|
|||
|
||||
| Variable | Effect |
|
||||
| --- | --- |
|
||||
| `ALLOWED_HOSTS` | extra host names/IPs the panel answers to (comma-separated, `*` for any); other hosts get 400 |
|
||||
| `ALLOWED_HOSTS` | extra host names/IPs the panel answers to (comma-separated, `*` for any; a network such as `192.0.2.0/24` is refused at start); other hosts get 400 |
|
||||
| `CSRF_TRUSTED_ORIGINS` | extra trusted origins, e.g. `https://wvc.example.com` |
|
||||
| `WEBVIRTCLOUD_HTTPS=1` | HTTPS profile, see [HTTPS and reverse proxy](#https-and-reverse-proxy) |
|
||||
| `WEBVIRTCLOUD_SERIAL_CONSOLE=1` | serial console, see [Serial console](#serial-console) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue