Add misp-network to compose file.

Uncomment NGINX http>https redirect
root 2018-06-22 15:24:00 +00:00
parent e44719ea6f
commit fbc34de9c4
2 changed files with 13 additions and 7 deletions

View File

@ -5,13 +5,15 @@ services:
build:
context: misp-proxy
container_name: misp-proxy
depends_on:
- misp-web
hostname: misp-proxy
image: misp-proxy:latest
networks:
- misp-network
ports:
- 80:80
- 443:443
- 81:80
- 4443:443
misp-web:
build: misp-web
@ -53,3 +55,7 @@ services:
- /data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=xxxxxxxx
networks:
misp-network:
driver: bridge

View File

@ -2,11 +2,11 @@
server {
listen 80;
listen 443 ssl http2;
server_name misp.local;
server_name misp.test;
#if ($scheme != "https") {
# rewrite ^ https://$host$uri permanent;
#}
if ($scheme != "https") {
rewrite ^ https://$host$uri permanent;
}
# Path for SSL config/key/certificate
ssl_certificate /etc/ssl/certs/nginx/misp.crt;