From d1a95be51817a73ffa6b0f56285e1adf1ff05599 Mon Sep 17 00:00:00 2001 From: Jason Kendall Date: Wed, 19 Feb 2020 20:37:14 -0500 Subject: [PATCH] add missing nginx misp config file --- server/files/etc/nginx/misp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 server/files/etc/nginx/misp diff --git a/server/files/etc/nginx/misp b/server/files/etc/nginx/misp new file mode 100644 index 0000000..092710b --- /dev/null +++ b/server/files/etc/nginx/misp @@ -0,0 +1,32 @@ +server { + listen 80 default_server; + listen [::]:80; + + server_name _; + + return 301 https://$host$request_uri; +} + +server { + + server_name misp-server; + listen 443 ssl http2 spdy; + root /var/www/MISP/app/webroot; + index index.php; + + ssl_certificate /etc/ssl/cert.pem; + ssl_certificate_key /etc/ssl/key.pem; + + # enable HSTS + add_header Strict-Transport-Security "max-age=15768000; includeSubdomains"; + add_header X-Frame-Options SAMEORIGIN; + + location / { + try_files $uri $uri/ /index.php; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; + } +}