IDDRS_API/guide.txt

95 lines
2.7 KiB
Plaintext
Raw Permalink Normal View History

2023-11-29 13:21:44 +00:00
pip install django
pip install django-rest-framework
pip install --upgrade djangorestframework-simplejwt
pip install django-filter
pip install django-cors-headers
pip install elasticsearch
pip install xhtml2pdf
# if error occured
sudo apt install libcairo2-dev pkg-config python3-dev
pip3 install pycairo
# the above command will install pycairo 1.17.1
# then re-install pip install xhtml2pdf
pip install python-docx
pip install PyMuPDF
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_sm
<VirtualHost *:8000>
ServerAdmin webmaster@localhost
DocumentRoot /home/ubuntu/IDDRS_API
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/ubuntu/IDDRS_API/static
<Directory /home/ubuntu/IDDRS_API/static>
Require all granted
</Directory>
<Directory /home/ubuntu/IDDRS_API/iddrs_api>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / /home/ubuntu/IDDRS_API/iddrs_api/wsgi.py
WSGIDaemonProcess django_app python-path=/home/ubuntu/IDDRS_API python-home=/home/ubuntu/iddrs_venv
WSGIProcessGroup django_app
</VirtualHost>
<VirtualHost *:80>
ServerName 144.217.95.15
DocumentRoot /home/ubuntu/IDDRS_Client/build
ErrorLog /home/ubuntu/IDDRS_Client/log/error.log
CustomLog /home/ubuntu/IDDRS_Client/log/requests.log combined
<Directory /home/ubuntu/IDDRS_Client/build>
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
</VirtualHost>
<VirtualHost *:8001>
ServerName 144.217.95.15
DocumentRoot /home/ubuntu/IDDRS_Admin/build
ErrorLog /home/ubuntu/IDDRS_Admin/log/error.log
CustomLog /home/ubuntu/IDDRS_Admin/log/requests.log combined
<Directory /home/ubuntu/IDDRS_Admin/build>
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
2023-11-30 14:06:43 +00:00
</VirtualHost>
###
elasticsearch
Authentication and authorization are enabled.
TLS for the transport and HTTP layers is enabled and configured.
The generated password for the elastic built-in superuser is : ZyRJLXmUYNlTSza8tMLk
If this node should join an existing cluster, you can reconfigure this with
'/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token <token-here>'
after creating an enrollment token on your existing cluster.
You can complete the following actions at any time:
Reset the password of the elastic built-in superuser with
'/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic'.
Generate an enrollment token for Kibana instances with
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana'.
Generate an enrollment token for Elasticsearch nodes with
'/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node'.