`run.py` and the server defaults exposed the dashboard on every interface with no authentication. Default to 127.0.0.1; the Docker entrypoint still passes --host 0.0.0.0 explicitly, so containers are unaffected. Document the override in the --host help text. Also switch from HTTPServer to ThreadingHTTPServer so one slow investigation (subdomain enumeration / whois / ~200 social URL probes) no longer blocks every other request.
30 lines
791 B
Python
30 lines
791 B
Python
#!/usr/bin/env python3
|
|
"""EireScope — Run the OSINT Investigation Dashboard."""
|
|
import sys
|
|
import os
|
|
import argparse
|
|
|
|
# Add project root to path
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from eirescope.web.app import run_server
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(
|
|
description="EireScope — Open-Source Intelligence Investigation Dashboard"
|
|
)
|
|
parser.add_argument(
|
|
"--host", default="127.0.0.1",
|
|
help="Host to bind to (default: 127.0.0.1; use 0.0.0.0 to expose externally)"
|
|
)
|
|
parser.add_argument(
|
|
"--port", type=int, default=5000,
|
|
help="Port to listen on (default: 5000)"
|
|
)
|
|
args = parser.parse_args()
|
|
run_server(host=args.host, port=args.port)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|