]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- fixed ssl configuration handling
authorMarcin Krol <hawk@tld-linux.org>
Thu, 28 Jul 2016 14:14:19 +0000 (14:14 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 28 Jul 2016 14:14:19 +0000 (14:14 +0000)
- added default ssl configuration

TLD_Builder/config.py
TLD_Builder/request_handler_server.py
config/builder.conf

index 5e3bd9e106786427e97623bebedba60646ce9384..663862e5d1bb4fc4e883537a77badbf99753501a 100644 (file)
@@ -72,10 +72,10 @@ class Builder_Conf:
         self.max_keep_time = int(get("max_keep_time", 168))*60*60
         self.bot_email = get("bot_email", "")
         self.control_url = get("control_url")
-        self.request_handler_server_port = int(get("port", d=1234, sec="request-server"))
+        self.request_handler_server_port = int(get("port", d=1231, sec="request-server"))
         self.request_handler_server_ssl = get("ssl", d="False", sec="request-server")
         if self.request_handler_server_ssl:
-            self.request_handler_server_ssl_port = int(get("port", d=1235, sec="request-server"))
+            self.request_handler_server_ssl_port = int(get("ssl_port", d=1241, sec="request-server"))
             self.request_handler_server_ssl_key = get("ssl_key", d="", sec="request-server")
             self.request_handler_server_ssl_cert = get("ssl_cert", d="", sec="request-server")
         self.builder_list = get("builder_list", "")
index ece2f962521b79eea3b3951609356792ab7cc67a..e343590e32350bf9b0c9181bc4903bf32ae6401c 100644 (file)
@@ -96,8 +96,8 @@ def main(srv_ssl=False):
             server = HTTPServer((host, port), MyHandler)
             if srv_ssl:
                 server.socket = ssl.wrap_socket (server.socket,
-                                keyfile = config.request_handler_server_ssl_key,
-                                certfile = config.request_handler_server_ssl_cert,
+                                keyfile = path.conf_dir + "/" + config.request_handler_server_ssl_key,
+                                certfile = path.conf_dir + "/" + config.request_handler_server_ssl_cert,
                                 ca_certs = "/etc/certs/ca-certificates.crt",
                                 server_side=True)
         except Exception, e:
index aefdabf9eb9fa92db10442b48f1c2e35e7fe2199..e2374ea39740f86c58f098aa8ac8dda78b6f69a8 100644 (file)
@@ -63,6 +63,14 @@ rpm_cache_dir = /spools/ready
 # List of name-version-release tag prefixes.
 tag_prefixes = auto/ti/
 
+# ------ request handler server config, ignored on binary builders:
+[request-server]
+port = 1231
+ssl = True
+ssl_port = 1241
+ssl_cert = request-server.crt
+ssl_key = request-server.key
+
 # ------ Configs for particular builders:
 
 [ti-src]