mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Merge branch 'tweak/http-ref' into 'dev'
Remove http references from codebase See merge request crafty-controller/crafty-4!733
This commit is contained in:
commit
d63dd4f258
@ -5,7 +5,7 @@ TBD
|
|||||||
### Bug fixes
|
### Bug fixes
|
||||||
TBD
|
TBD
|
||||||
### Tweaks
|
### Tweaks
|
||||||
TBD
|
- Clean up remaining http handler references ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/733))
|
||||||
### Lang
|
### Lang
|
||||||
TBD
|
TBD
|
||||||
<br><br>
|
<br><br>
|
||||||
|
@ -9,7 +9,6 @@ from app.classes.web.base_api_handler import BaseApiHandler
|
|||||||
config_json_schema = {
|
config_json_schema = {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"http_port": {"type": "integer"},
|
|
||||||
"https_port": {"type": "integer"},
|
"https_port": {"type": "integer"},
|
||||||
"language": {
|
"language": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -98,7 +98,6 @@ class Webserver:
|
|||||||
# let's verify we have an SSL cert
|
# let's verify we have an SSL cert
|
||||||
self.helper.create_self_signed_cert()
|
self.helper.create_self_signed_cert()
|
||||||
|
|
||||||
http_port = self.helper.get_setting("http_port")
|
|
||||||
https_port = self.helper.get_setting("https_port")
|
https_port = self.helper.get_setting("https_port")
|
||||||
|
|
||||||
debug_errors = self.helper.get_setting("show_errors")
|
debug_errors = self.helper.get_setting("show_errors")
|
||||||
@ -110,9 +109,6 @@ class Webserver:
|
|||||||
cookie_secret = self.helper.random_string_generator(32)
|
cookie_secret = self.helper.random_string_generator(32)
|
||||||
HelpersManagement.set_cookie_secret(cookie_secret)
|
HelpersManagement.set_cookie_secret(cookie_secret)
|
||||||
|
|
||||||
if not http_port and http_port != 0:
|
|
||||||
http_port = 8000
|
|
||||||
|
|
||||||
if not https_port:
|
if not https_port:
|
||||||
https_port = 8443
|
https_port = 8443
|
||||||
|
|
||||||
@ -125,7 +121,7 @@ class Webserver:
|
|||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info(f"Starting Web Server on ports http:{http_port} https:{https_port}")
|
logger.info(f"Starting Web Server on ports https:{https_port}")
|
||||||
|
|
||||||
asyncio.set_event_loop(asyncio.new_event_loop())
|
asyncio.set_event_loop(asyncio.new_event_loop())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user