-
Notifications
You must be signed in to change notification settings - Fork 2
Instalation
pep-un edited this page Feb 17, 2023
·
7 revisions
you should have python v3.8+
on a Debian 11 system :
apt install python3 python3-pip python3-venv
Not tested yet but it should be working like that :
git clone https://github.com/pep-un/Oxomium.git
chown -R www-data:www-data
cd Oxomium
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
If you want to load the default data (ISO27001 and NIST Policy):
python manage.py loaddata conformity/fixture/Template-Policy-ISO-27k1.yaml
python manage.py loaddata conformity/fixture/Template-Policy-NIST.yaml
For non-production usage
python manage.py runserver
For production usage
Change the following parameter of oxomium/settings.py
:
-
SECURITY_KEY
with a uniq key, a script avayable under scripts folder -
DEBUG
fromFalse
toTrue
-
ALLOWED_HOSTS
according to your configuration
Check the configuration with python manage.py check --deploy
and fix all warning.
pip install gunicorn
python manage.py collectstatic
deploy systemd unit file, enable and start the service.
You should check this Django checklist to be sure to have a safe installation : https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/
If your instance is publicly accessible (should it be ?) you can use this online scanner : https://djcheckup.com/