File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 4
4
server : WE48687
5
5
# Only include if we need to have dcap be available
6
6
# http_port: 8080
7
- https_port : 8443
7
+ port : 8090
8
8
9
- enable_cache : False
9
+ proxy_hostname : 0.0.0.0:8443
10
10
11
11
tls_repository : " ~/tls"
12
12
openssl_cnf : " openssl.cnf"
@@ -31,6 +31,7 @@ generate_admin_cert: True
31
31
log_event_list_poll_rate : 60
32
32
device_capability_poll_rate : 60
33
33
34
+
34
35
# Directory containing data files for the platform.
35
36
# This directory will be created if it does not exist.
36
37
storage_path : data_store
Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ def __handle_response__(self, conn: HTTPSConnection):
90
90
return response
91
91
92
92
def do_GET (self ):
93
-
94
93
95
94
conn = self .__start_request__ ()
96
95
@@ -113,7 +112,7 @@ def do_POST(self):
113
112
114
113
response = self .__handle_response__ (conn )
115
114
_log .info (f"POST { self .path } Content-Length: { self .headers .get ('Content-Length' )} , Response Status: { response .status } " )
116
-
115
+
117
116
def do_DELETE (self ):
118
117
_log .info (f"DELETE { self .path } Content-Length: { self .headers .get ('Content-Length' )} " )
119
118
@@ -128,7 +127,7 @@ def do_DELETE(self):
128
127
129
128
response = self .__handle_response__ (conn )
130
129
_log .info (f"DELETE { self .path } Content-Length: { self .headers .get ('Content-Length' )} , Response Status: { response .status } " )
131
-
130
+
132
131
def do_PUT (self ):
133
132
_log .info (f"PUT { self .path } Content-Length: { self .headers .get ('Content-Length' )} " )
134
133
@@ -221,6 +220,9 @@ def _main():
221
220
222
221
config = ServerConfiguration (** cfg_dict )
223
222
223
+ if config .proxy_hostname is None :
224
+ print ("Invalid proxy_hostname in config file." )
225
+
224
226
tls_repo = TLSRepository (repo_dir = config .tls_repository ,
225
227
openssl_cnffile_template = config .openssl_cnf ,
226
228
serverhost = config .server_hostname ,
You can’t perform that action at this time.
0 commit comments