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/ /files/
/ssl/ /ssl/
/configs/ /configs/
/public/
.gnupg .gnupg
.env .env

View File

@ -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"

0
public/.keep Normal file
View File

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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