summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/config.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/extras/config.py b/extras/config.py
index 5056cc3..cc61c57 100644
--- a/extras/config.py
+++ b/extras/config.py
@@ -1,14 +1,34 @@
+"""
+ Copyright 2023 Suchinton Chakravarty
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+"""
+
import os
import platform
-python_version = "python" + platform.python_version_tuple()[0] + "." + platform.python_version_tuple()[1]
+python_version = f"python{'.'.join(platform.python_version_tuple()[:2])}"
+
+CA = os.path.abspath(os.path.join(os.path.dirname(__file__), "../assets/CA.pem"))
KUKSA_CONFIG = {
"ip": 'localhost',
"port": "8090",
'protocol': 'ws',
'insecure': False,
+ 'cacertificate': CA,
+ 'tls_server_name': "Server",
}
TOKEN_PATH = os.path.join(os.path.expanduser("~"),
- f".local/lib/{python_version}/site-packages/kuksa_certificates/jwt/super-admin.json.token") \ No newline at end of file
+ f".local/lib/{python_version}/site-packages/kuksa_certificates/jwt/super-admin.json.token")