mirror of https://github.com/MISP/misp-docker
Add misp-network to compose file.
Uncomment NGINX http>https redirect
parent
e44719ea6f
commit
fbc34de9c4
|
@ -5,13 +5,15 @@ services:
|
||||||
build:
|
build:
|
||||||
context: misp-proxy
|
context: misp-proxy
|
||||||
container_name: misp-proxy
|
container_name: misp-proxy
|
||||||
|
depends_on:
|
||||||
|
- misp-web
|
||||||
hostname: misp-proxy
|
hostname: misp-proxy
|
||||||
image: misp-proxy:latest
|
image: misp-proxy:latest
|
||||||
networks:
|
networks:
|
||||||
- misp-network
|
- misp-network
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 81:80
|
||||||
- 443:443
|
- 4443:443
|
||||||
|
|
||||||
misp-web:
|
misp-web:
|
||||||
build: misp-web
|
build: misp-web
|
||||||
|
@ -52,4 +54,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /data/mysql:/var/lib/mysql
|
- /data/mysql:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=xxxxxxxx
|
- MYSQL_ROOT_PASSWORD=xxxxxxxx
|
||||||
|
|
||||||
|
networks:
|
||||||
|
misp-network:
|
||||||
|
driver: bridge
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name misp.local;
|
server_name misp.test;
|
||||||
|
|
||||||
#if ($scheme != "https") {
|
if ($scheme != "https") {
|
||||||
# rewrite ^ https://$host$uri permanent;
|
rewrite ^ https://$host$uri permanent;
|
||||||
#}
|
}
|
||||||
|
|
||||||
# Path for SSL config/key/certificate
|
# Path for SSL config/key/certificate
|
||||||
ssl_certificate /etc/ssl/certs/nginx/misp.crt;
|
ssl_certificate /etc/ssl/certs/nginx/misp.crt;
|
||||||
|
|
Loading…
Reference in New Issue