-
Notifications
You must be signed in to change notification settings - Fork 2
/
001-fody.conf
50 lines (41 loc) · 1.9 KB
/
001-fody.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Listen 127.0.0.1:8666
Listen 8000
<VirtualHost *:8666>
ServerAdmin webmaster@localhost
DocumentRoot /usr/lib/python3/dist-packages/intelmq_fody_backend
WSGIDaemonProcess www-fody threads=1 maximum-requests=10000
WSGIScriptAlias / /usr/lib/python3/dist-packages/intelmq_fody_backend/serve.py
WSGICallableObject __hug_wsgi__
WSGIPassAuthorization On
<Directory /usr/lib/python3/dist-packages/intelmq_fody_backend>
<IfModule mod_headers.c>
Header set Content-Security-Policy "script-src 'self'"
Header set X-Content-Security-Policy "script-src 'self'"
</IfModule>
Require all granted
Options FollowSymLinks
</Directory>
ErrorLog ${APACHE_LOG_DIR}/fody-backend-error.log
#CustomLog ${APACHE_LOG_DIR}/fody-backend-access.log combined
# combined + logging the time taken to serve the request in microseconds
CustomLog ${APACHE_LOG_DIR}/fody-backend-access.log "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %{ms}T"
</VirtualHost>
<VirtualHost *:8000>
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/fody/www
<Directory /usr/share/fody/www>
<IfModule mod_headers.c>
Header set Content-Security-Policy "script-src 'self'"
Header set X-Content-Security-Policy "script-src 'self'"
</IfModule>
Require all granted
Options FollowSymLinks
</Directory>
ProxyPass /api http://localhost:8666/api
ProxyPassReverse /api http://localhost:8666/api
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/(index.html|static|api|intelmq-webinput)
RewriteRule .* /index.html [PT]
ErrorLog ${APACHE_LOG_DIR}/fody-web-error.log
CustomLog ${APACHE_LOG_DIR}/fody-web-access.log combined
</VirtualHost>