1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/accounts
catborise 29a1cbcace feat: an installation's own settings in data/local_settings.py; settings.py is part of the code
Every update rebuilt settings.py from the template, and the operator put
back their own values by reading a diff: a forgotten DATABASES started
the panel on a new, empty sqlite database. Docker users who needed an
option only settings.py has (LDAP, OTP_ENABLED, LOGIN_TRUSTED_PROXIES)
mounted their own copy and kept it up to date by hand.

webvirtcloud/settings.py is now the tracked file (no template, no copy
in the installer, the image, the container's start or CI), and it runs
data/local_settings.py last: the installation's own values, which an
update does not touch, kept in Docker's data volume, in the panel's
backups and readable by the panel's user only. The installer writes the
time zone, the noVNC port (now checked to be a number), ALLOWED_HOSTS
and CSRF_TRUSTED_ORIGINS there instead of editing settings.py with sed.
LDAP is set up there too; settings.py keeps only python-ldap's
timeouts. The README's update steps move an older version's own
settings.py into the backup before git pull and have its values moved
into the local file once.
2026-11-20 17:50:43 +03:00
..
migrations feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
templates fix(tags): second audit: unchanged saves, report, other lists, hosts list 2026-11-18 23:15:34 +03:00
templatetags lint with black python. convert f style strings to old one. some small fixes 2020-11-05 12:34:31 +03:00
tests fix: the user list, a user's VMs and the SSH keys come in name order 2026-11-19 14:31:59 +03:00
__init__.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
apps.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
auth.py fix(admin): a forced password change cannot trap a user or be skipped with a token 2026-10-26 10:12:53 +03:00
checks.py feat: an installation's own settings in data/local_settings.py; settings.py is part of the code 2026-11-20 17:50:43 +03:00
forms.py fix(accounts): owners given before one owner was the rule keep editable rights 2026-11-13 14:27:32 +03:00
lockout.py feat(accounts): failed logins lock a user for the address they come from 2026-10-06 11:05:03 +03:00
middleware.py fix(api): an error's status says what it is, and its body is always {"detail"} 2026-11-07 13:29:46 +03:00
models.py feat(vmbackups): VM owners back up and restore their VMs within a quota 2026-11-17 19:40:24 +03:00
otp.py fix(accounts): a username longer than the field is refused by the login form 2026-10-23 16:06:10 +03:00
urls.py feat(accounts): an administrator can reset a user's OTP 2026-11-10 08:10:48 +03:00
utils.py fix(accounts): an SSH key is a whole key, and added once 2026-11-12 22:09:16 +03:00
views.py fix: the user list, a user's VMs and the SSH keys come in name order 2026-11-19 14:31:59 +03:00