MCPcopy Create free account
hub / github.com/StackStorm/st2 / _setup

Function _setup

st2auth/st2auth/cmd/api.py:46–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45
46def _setup():
47 capabilities = {
48 "name": "auth",
49 "listen_host": cfg.CONF.auth.host,
50 "listen_port": cfg.CONF.auth.port,
51 "listen_ssl": cfg.CONF.auth.use_ssl,
52 "type": "active",
53 }
54 common_setup(
55 service=AUTH,
56 config=config,
57 setup_db=True,
58 register_mq_exchanges=False,
59 register_signal_handlers=True,
60 register_internal_trigger_types=False,
61 run_migrations=False,
62 service_registry=True,
63 capabilities=capabilities,
64 )
65
66 # Additional pre-run time checks
67 validate_auth_backend_is_correctly_configured()
68
69
70def _run_server():

Callers 1

mainFunction · 0.70

Tested by

no test coverage detected