mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Configuration cleanup.
This commit is contained in:
parent
4ee09cf817
commit
f1c8497f3b
6 changed files with 37 additions and 25 deletions
|
@ -27,13 +27,14 @@
|
|||
"""
|
||||
Radicale Server entry point.
|
||||
|
||||
Launch the Radicale Serve according to the configuration.
|
||||
Launch the Radicale Server according to the configuration.
|
||||
"""
|
||||
|
||||
import radicale
|
||||
|
||||
if radicale.config.get("server", "type") == "http":
|
||||
if radicale.config.get("server", "protocol") == "http":
|
||||
server = radicale.server.HTTPServer(
|
||||
("", radicale.config.getint("server", "port")),
|
||||
(radicale.config.get("server", "name"),
|
||||
radicale.config.getint("server", "port")),
|
||||
radicale.CalendarHandler)
|
||||
server.serve_forever()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue