mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-24 16:23:36 +05:00
Compare commits
3 Commits
bc1c1a98ef
...
39d3b0702a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
39d3b0702a | ||
|
|
c8f713c00e | ||
|
|
3d7e865409 |
@@ -53,17 +53,20 @@ class Repository:
|
||||
url: str
|
||||
branch: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class KlipperSettings:
|
||||
repositories: List[Repository] | None = field(default=None)
|
||||
use_python_binary: str | None = field(default=None)
|
||||
|
||||
|
||||
@dataclass
|
||||
class MoonrakerSettings:
|
||||
optional_speedups: bool | None = field(default=None)
|
||||
repositories: List[Repository] | None = field(default=None)
|
||||
use_python_binary: str | None = field(default=None)
|
||||
|
||||
|
||||
@dataclass
|
||||
class WebUiSettings:
|
||||
port: int | None = field(default=None)
|
||||
@@ -158,8 +161,6 @@ class KiauhSettings:
|
||||
|
||||
self._validate_int("fluidd", "port")
|
||||
self._validate_bool("fluidd", "unstable_releases")
|
||||
|
||||
self._validate_bool("moonraker", "optional_speedups")
|
||||
|
||||
except ValueError:
|
||||
err = f"Invalid value for option '{self._v_option}' in section '{self._v_section}'"
|
||||
@@ -215,7 +216,9 @@ class KiauhSettings:
|
||||
"kiauh", "backup_before_update"
|
||||
)
|
||||
|
||||
self.moonraker.optional_speedups = self.config.getboolean("moonraker", "optional_speedups", True)
|
||||
self.moonraker.optional_speedups = self.config.getboolean(
|
||||
"moonraker", "optional_speedups", True
|
||||
)
|
||||
|
||||
kl_repos = self.config.getval("klipper", "repositories")
|
||||
self.klipper.repositories = self.__set_repo_state(kl_repos)
|
||||
@@ -223,8 +226,12 @@ class KiauhSettings:
|
||||
mr_repos = self.config.getval("moonraker", "repositories")
|
||||
self.moonraker.repositories = self.__set_repo_state(mr_repos)
|
||||
|
||||
self.klipper.use_python_binary = self.config.getval("klipper", "use_python_binary", None)
|
||||
self.moonraker.use_python_binary = self.config.getval("moonraker", "use_python_binary", None)
|
||||
self.klipper.use_python_binary = self.config.getval(
|
||||
"klipper", "use_python_binary", None
|
||||
)
|
||||
self.moonraker.use_python_binary = self.config.getval(
|
||||
"moonraker", "use_python_binary", None
|
||||
)
|
||||
|
||||
self.mainsail.port = self.config.getint("mainsail", "port")
|
||||
self.mainsail.unstable_releases = self.config.getboolean(
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
access_log /var/log/nginx/fluidd-access.log;
|
||||
error_log /var/log/nginx/fluidd-error.log;
|
||||
|
||||
Reference in New Issue
Block a user