mirror of https://github.com/MISP/misp-docker
Add nginx route (/feeds) that exposes various MISP feeds (#9)
Signed-off-by: Sebastiano Mariani <smariani@vmware.com>pull/1/head
parent
212a9ca557
commit
814379c22f
|
@ -2,5 +2,6 @@
|
||||||
/files/
|
/files/
|
||||||
/ssl/
|
/ssl/
|
||||||
/configs/
|
/configs/
|
||||||
|
/public/
|
||||||
.gnupg
|
.gnupg
|
||||||
.env
|
.env
|
||||||
|
|
|
@ -41,6 +41,7 @@ services:
|
||||||
- "./logs/:/var/www/MISP/app/tmp/logs/:delegated"
|
- "./logs/:/var/www/MISP/app/tmp/logs/:delegated"
|
||||||
- "./files/:/var/www/MISP/app/files/:delegated"
|
- "./files/:/var/www/MISP/app/files/:delegated"
|
||||||
- "./ssl/:/etc/nginx/certs/:delegated"
|
- "./ssl/:/etc/nginx/certs/:delegated"
|
||||||
|
- "${PUBLIC_MOUNT_POINT}:/mnt/public/:delegated"
|
||||||
# - "./examples/custom-entrypoint.sh:/custom-entrypoint.sh" # Use the example custom-entrypoint.sh
|
# - "./examples/custom-entrypoint.sh:/custom-entrypoint.sh" # Use the example custom-entrypoint.sh
|
||||||
- "./.gnupg/:/var/www/MISP/.gnupg/:delegated"
|
- "./.gnupg/:/var/www/MISP/.gnupg/:delegated"
|
||||||
environment:
|
environment:
|
||||||
|
@ -60,6 +61,7 @@ services:
|
||||||
"pull_rules": "{\"tags\":{\"OR\":[],\"NOT\":[]},\"orgs\":{\"OR\":[],\"NOT\":[]},\"url_params\":\"{\\\"searchanalysis\\\": \\\"2\\\"}\"}",
|
"pull_rules": "{\"tags\":{\"OR\":[],\"NOT\":[]},\"orgs\":{\"OR\":[],\"NOT\":[]},\"url_params\":\"{\\\"searchanalysis\\\": \\\"2\\\"}\"}",
|
||||||
"pull": true
|
"pull": true
|
||||||
}
|
}
|
||||||
|
- "ORGANIZATIONS=${ORGANIZATIONS}"
|
||||||
# Database Configuration (And their defaults)
|
# Database Configuration (And their defaults)
|
||||||
# - "MYSQL_HOST=db"
|
# - "MYSQL_HOST=db"
|
||||||
# - "MYSQL_USER=misp"
|
# - "MYSQL_USER=misp"
|
||||||
|
|
|
@ -39,6 +39,14 @@ server {
|
||||||
# Remove X-Powered-By, which is an information leak
|
# Remove X-Powered-By, which is an information leak
|
||||||
fastcgi_hide_header X-Powered-By;
|
fastcgi_hide_header X-Powered-By;
|
||||||
|
|
||||||
|
location /public {
|
||||||
|
root /mnt;
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_format html;
|
||||||
|
autoindex_localtime on;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php$is_args$query_string;
|
try_files $uri $uri/ /index.php$is_args$query_string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,14 @@ server {
|
||||||
# Remove X-Powered-By, which is an information leak
|
# Remove X-Powered-By, which is an information leak
|
||||||
fastcgi_hide_header X-Powered-By;
|
fastcgi_hide_header X-Powered-By;
|
||||||
|
|
||||||
|
location /public {
|
||||||
|
root /mnt;
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_format html;
|
||||||
|
autoindex_localtime on;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.php$is_args$query_string;
|
try_files $uri $uri/ /index.php$is_args$query_string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,3 +22,5 @@ SMARTHOST_ALIASES=
|
||||||
|
|
||||||
# comma separated list of organizations to create (e.g ORGANIZATIONS="ORG1, ORG2, ORG3")
|
# comma separated list of organizations to create (e.g ORGANIZATIONS="ORG1, ORG2, ORG3")
|
||||||
ORGANIZATIONS=
|
ORGANIZATIONS=
|
||||||
|
# Host folder containing the files generated by external tools
|
||||||
|
PUBLIC_MOUNT_POINT=./public
|
||||||
|
|
Loading…
Reference in New Issue