mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
fix(settings): an on/off variable is 1 or 0; another value stops the start
WEBVIRTCLOUD_DEBUG, WEBVIRTCLOUD_HTTPS, WEBVIRTCLOUD_SERIAL_CONSOLE and EMAIL_USE_TLS compared their value with "1": EMAIL_USE_TLS=true turned STARTTLS off, and WEBVIRTCLOUD_HTTPS=true left the cookies insecure, without a word. env_flag takes 1 or 0 (unset is the default, empty is 0 as before) and raises ImproperlyConfigured, naming the variable, on anything else. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
2a3c05020f
commit
9a00239a86
3 changed files with 37 additions and 6 deletions
|
|
@ -343,11 +343,13 @@ If libvirt warns `Host SMBIOS information is not available`, install `dmidecode`
|
|||
| `WEBVIRTCLOUD_SERIAL_CONSOLE=1` | serial console, see [Serial console](#serial-console) |
|
||||
| `WEBVIRTCLOUD_DEBUG=1` | Django debug mode: error pages show the traceback and settings; for trying things out only, never on a panel others use |
|
||||
| `WEBVIRTCLOUD_DB_HOST` | use PostgreSQL instead of sqlite (new installs); `WEBVIRTCLOUD_DB_PORT`/`_NAME`/`_USER`/`_PASSWORD` default to 5432/webvirtcloud/webvirtcloud/empty |
|
||||
| `EMAIL_HOST`, `EMAIL_PORT`, `EMAIL_HOST_USER`, `EMAIL_HOST_PASSWORD`, `EMAIL_USE_TLS` | SMTP for e-mail OTP |
|
||||
| `EMAIL_HOST`, `EMAIL_PORT`, `EMAIL_HOST_USER`, `EMAIL_HOST_PASSWORD`, `EMAIL_USE_TLS` | SMTP for e-mail OTP; `EMAIL_USE_TLS` is 1 (STARTTLS, the default) or 0 |
|
||||
| `WEBVIRTCLOUD_LOG_FILE` | log file (default `data/webvirtcloud.log`, rotated at 10 MB × 5) |
|
||||
| `SECRET_KEY` | Django secret key (default: the `data/secret_key` file) |
|
||||
| `ADMIN_USERNAME`, `ADMIN_PASSWORD` | the first superuser, read by the first `migrate` only, see [First login](#first-login) |
|
||||
|
||||
The on/off variables take `1` or `0`; any other value, such as `true`, stops the panel at start with an error naming the variable.
|
||||
|
||||
Where to set them:
|
||||
|
||||
- **Docker:** the `environment:` list of `docker-compose.override.yml`; every process in the container gets it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue