Add nginx route (/feeds) that exposes various MISP feeds (#9)

Signed-off-by: Sebastiano Mariani <smariani@vmware.com>
pull/1/head
Sebastiano Mariani 2022-11-30 08:51:29 -08:00 committed by GitHub
parent 212a9ca557
commit 814379c22f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
/files/
/ssl/
/configs/
/public/
.gnupg
.env

View File

@ -41,6 +41,7 @@ services:
- "./logs/:/var/www/MISP/app/tmp/logs/:delegated"
- "./files/:/var/www/MISP/app/files/: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
- "./.gnupg/:/var/www/MISP/.gnupg/:delegated"
environment:
@ -60,6 +61,7 @@ services:
"pull_rules": "{\"tags\":{\"OR\":[],\"NOT\":[]},\"orgs\":{\"OR\":[],\"NOT\":[]},\"url_params\":\"{\\\"searchanalysis\\\": \\\"2\\\"}\"}",
"pull": true
}
- "ORGANIZATIONS=${ORGANIZATIONS}"
# Database Configuration (And their defaults)
# - "MYSQL_HOST=db"
# - "MYSQL_USER=misp"

0
public/.keep Normal file
View File

View File

@ -39,6 +39,14 @@ server {
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
location /public {
root /mnt;
autoindex on;
autoindex_exact_size off;
autoindex_format html;
autoindex_localtime on;
}
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}

View File

@ -37,6 +37,14 @@ server {
# Remove X-Powered-By, which is an information leak
fastcgi_hide_header X-Powered-By;
location /public {
root /mnt;
autoindex on;
autoindex_exact_size off;
autoindex_format html;
autoindex_localtime on;
}
location / {
try_files $uri $uri/ /index.php$is_args$query_string;
}

View File

@ -22,3 +22,5 @@ SMARTHOST_ALIASES=
# comma separated list of organizations to create (e.g ORGANIZATIONS="ORG1, ORG2, ORG3")
ORGANIZATIONS=
# Host folder containing the files generated by external tools
PUBLIC_MOUNT_POINT=./public