| skipped 80 lines |
81 | 81 | | WEB_PORT = 8080 |
82 | 82 | | # Web application address |
83 | 83 | | WEB_HOST = "0.0.0.0" |
| 84 | + | # Websocket port |
| 85 | + | WS_PORT = 7687 |
84 | 86 | | |
85 | 87 | | # Check Event Id |
86 | 88 | | EVENT_ID = [4624, 4625, 4662, 4768, 4769, 4776, 4672, 4720, 4726, 4728, 4729, 4732, 4733, 4756, 4757, 4719, 5137, 5141] |
| skipped 190 lines |
277 | 279 | | # Web application index.html |
278 | 280 | | @app.route('/') |
279 | 281 | | def index(): |
280 | | - | return render_template("index.html", server_ip=NEO4J_SERVER, neo4j_password=NEO4J_PASSWORD, neo4j_user=NEO4J_USER) |
| 282 | + | return render_template("index.html", server_ip=NEO4J_SERVER, ws_port=WS_PORT, neo4j_password=NEO4J_PASSWORD, neo4j_user=NEO4J_USER) |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | # Timeline view |
284 | 286 | | @app.route('/timeline') |
285 | 287 | | def timeline(): |
286 | | - | return render_template("timeline.html", server_ip=NEO4J_SERVER, neo4j_password=NEO4J_PASSWORD, neo4j_user=NEO4J_USER) |
| 288 | + | return render_template("timeline.html", server_ip=NEO4J_SERVER, ws_port=WS_PORT, neo4j_password=NEO4J_PASSWORD, neo4j_user=NEO4J_USER) |
287 | 289 | | |
288 | 290 | | |
289 | 291 | | # Web application logs |
| skipped 915 lines |