mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
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.
51 lines
821 B
Text
51 lines
821 B
Text
# What the image does not need. Runtime data and secrets of a used checkout
|
|
# must never enter it (CI plants sentinels to check).
|
|
|
|
# runtime data, secrets and local settings
|
|
data
|
|
backups
|
|
**/*.sqlite3*
|
|
**/*.log
|
|
**/*.log.*
|
|
**/*.bak
|
|
**/*~
|
|
**/*.swp
|
|
**/*.swo
|
|
**/console/cert.pem*
|
|
**/dhcpd.*
|
|
# a settings.py older versions had Docker users mount from next to the compose file
|
|
/settings.py
|
|
**/staticfiles
|
|
|
|
# virtualenvs, caches and editor files
|
|
**/venv*
|
|
**/.venv*
|
|
**/env*
|
|
**/.env*
|
|
**/__pycache__
|
|
**/*.py[cod]
|
|
**/.ruff_cache
|
|
**/.pytest_cache
|
|
**/.coverage*
|
|
**/htmlcov
|
|
**/.idea
|
|
**/.vscode
|
|
**/.DS_Store
|
|
**/.vagrant
|
|
|
|
# repository, CI, docs and the other ways to install
|
|
.git
|
|
.gitignore
|
|
.github
|
|
.hadolint.yaml
|
|
.dockerignore
|
|
Dockerfile
|
|
docker-compose*.yml
|
|
_config.yml
|
|
pyproject.toml
|
|
*.md
|
|
doc
|
|
dev
|
|
Vagrantfile
|
|
install.sh
|
|
webvirtcloud.sh
|