MCPcopy Index your code
hub / github.com/bugy/script-server / ServerConfig

Class ServerConfig

src/model/server_conf.py:21–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class ServerConfig(object):
22 def __init__(self) -> None:
23 self.address = None
24 self.port = None
25 self.ssl = False
26 self.ssl_key_path = None
27 self.ssl_cert_path = None
28 self.authenticator = None
29 self.allowed_users = None
30 self.alerts_config = None
31 self.logging_config = None
32 self.admin_config = None
33 self.title = None
34 self.enable_script_titles = None
35 self.ip_validator = TrustedIpValidator([])
36 self.user_groups = None
37 self.admin_users = []
38 self.full_history_users = []
39 self.code_editor_users = []
40 self.max_request_size_mb = None
41 self.callbacks_config = None
42 self.user_header_name = None
43 self.secret_storage_file = None
44 self.xsrf_protection = None
45 # noinspection PyTypeChecker
46 self.env_vars: EnvVariables = None
47
48 def get_port(self):
49 return self.port
50
51 def is_ssl(self):
52 return self.ssl
53
54 def get_ssl_key_path(self):
55 return self.ssl_key_path
56
57 def get_ssl_cert_path(self):
58 return self.ssl_cert_path
59
60
61class LoggingConfig:

Callers 4

test_full_configMethod · 0.90
start_serverMethod · 0.90
from_jsonFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_full_configMethod · 0.72
start_serverMethod · 0.72