mirror of https://github.com/MISP/misp-dashboard
commit
609d9c8780
41
README.md
41
README.md
|
@ -88,6 +88,47 @@ optional arguments:
|
||||||
The URL to connect to
|
The URL to connect to
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Deploy in production using mod_wsgi
|
||||||
|
|
||||||
|
Install Apache's mod-wsgi for Python3
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install libapache2-mod-wsgi-py3
|
||||||
|
```
|
||||||
|
|
||||||
|
Caveat: If you already have mod-wsgi installed for Python2, it will be replaced!
|
||||||
|
|
||||||
|
```bash
|
||||||
|
The following packages will be REMOVED:
|
||||||
|
libapache2-mod-wsgi
|
||||||
|
The following NEW packages will be installed:
|
||||||
|
libapache2-mod-wsgi-py3
|
||||||
|
```
|
||||||
|
|
||||||
|
Configuration file `/etc/apache2/sites-available/misp-dashboard.conf` assumes that `misp-dashboard` is cloned into `var/www/misp-dashboard`. It runs as user `misp` in this example. Change the permissions to folder and files accordingly.
|
||||||
|
|
||||||
|
```
|
||||||
|
<VirtualHost *:8000>
|
||||||
|
ServerAdmin admin@misp.local
|
||||||
|
ServerName misp.local
|
||||||
|
|
||||||
|
DocumentRoot /var/www/misp-dashboard
|
||||||
|
WSGIDaemonProcess misp-dashboard user=misp group=misp threads=5 python-home=/var/www/misp-dashboard/DASHENV
|
||||||
|
WSGIScriptAlias / /var/www/misp-dashboard/misp-dashboard.wsgi
|
||||||
|
|
||||||
|
<Directory /var/www/misp-dashboard>
|
||||||
|
WSGIProcessGroup misp-dashboard
|
||||||
|
WSGIApplicationGroup %{GLOBAL}
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
LogLevel info
|
||||||
|
ErrorLog /var/log/apache2/misp-dashboard.local_error.log
|
||||||
|
CustomLog /var/log/apache2/misp-dashboard.local_access.log combined
|
||||||
|
ServerSignature Off
|
||||||
|
</VirtualHost>
|
||||||
|
```
|
||||||
|
|
||||||
# License
|
# License
|
||||||
Images and logos are handmade for:
|
Images and logos are handmade for:
|
||||||
- rankingMISPOrg/
|
- rankingMISPOrg/
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
import sys,os,os.path
|
||||||
|
sys.path.insert(0, os.path.dirname(__file__))
|
||||||
|
os.environ["DASH_CONFIG"] = os.path.join(os.path.dirname(__file__), "config")
|
||||||
|
from server import app as application
|
Loading…
Reference in New Issue