-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathdocker-run.sh
45 lines (36 loc) · 1.06 KB
/
docker-run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export OPENTAXII_CONFIG=/MISP-Taxii-Server/config.yaml && export PYTHONPATH=.
cat > /MISP-Taxii-Server/config.yaml <<EOF
domain: "localhost:9000"
support_basic_auth: yes
persistence_api:
class: opentaxii.persistence.sqldb.SQLDatabaseAPI
parameters:
db_connection: $PERSIST_CONNECTION_STRING
create_tables: yes
auth_api:
class: opentaxii.auth.sqldb.SQLDatabaseAPI
parameters:
db_connection: $AUTH_CONNECTION_STRING
create_tables: yes
secret: ILoveTheSecretStringIsIsGreatButNeedsToBeChangedFrienderino
logging:
opentaxii: info
root: info
hooks: misp_taxii_hooks.hooks
# Sample configuration for misp_taxii_server
zmq:
host: "$ZMQ_HOST"
port: "$ZMQ_PORT"
misp:
url: "$MISP_URL"
api: "$MISP_KEY"
taxii:
auth:
username: "$TAXII_USER"
password: "$TAXII_PASS"
collections:
- collection
EOF
opentaxii-create-services -c config/services.yaml && opentaxii-create-collections -c config/collections.yaml
opentaxii-create-account -u $TAXII_USER -p $TAXII_PASS
gunicorn opentaxii.http:app --bind 0.0.0.0:9000