arkitekt-next 0.7.34__py3-none-any.whl → 0.7.35__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of arkitekt-next might be problematic. Click here for more details.
- arkitekt_next/bloks/gateway.py +6 -6
- {arkitekt_next-0.7.34.dist-info → arkitekt_next-0.7.35.dist-info}/METADATA +1 -1
- {arkitekt_next-0.7.34.dist-info → arkitekt_next-0.7.35.dist-info}/RECORD +6 -6
- {arkitekt_next-0.7.34.dist-info → arkitekt_next-0.7.35.dist-info}/LICENSE +0 -0
- {arkitekt_next-0.7.34.dist-info → arkitekt_next-0.7.35.dist-info}/WHEEL +0 -0
- {arkitekt_next-0.7.34.dist-info → arkitekt_next-0.7.35.dist-info}/entry_points.txt +0 -0
arkitekt_next/bloks/gateway.py
CHANGED
|
@@ -4,7 +4,7 @@ from pydantic import BaseModel
|
|
|
4
4
|
from typing import Dict, Any
|
|
5
5
|
|
|
6
6
|
from blok import blok, InitContext
|
|
7
|
-
|
|
7
|
+
from blok.bloks.services.dns import DnsService
|
|
8
8
|
|
|
9
9
|
DEFAULT_PUBLIC_URLS = ["127.0.0.1"]
|
|
10
10
|
DEFAULT_PUBLIC_HOSTS = ["localhost"]
|
|
@@ -36,14 +36,14 @@ class GatewayBlok:
|
|
|
36
36
|
self.public_ips = DEFAULT_PUBLIC_URLS
|
|
37
37
|
self.public_hosts = DEFAULT_PUBLIC_HOSTS
|
|
38
38
|
|
|
39
|
-
def
|
|
40
|
-
return []
|
|
41
|
-
|
|
42
|
-
def preflight(self, init: InitContext):
|
|
39
|
+
def preflight(self, init: InitContext, dns: DnsService):
|
|
43
40
|
for key, value in init.kwargs.items():
|
|
44
41
|
setattr(self, key, value)
|
|
45
42
|
|
|
46
|
-
|
|
43
|
+
self.public_ips = dns.get_dns_result().ip_addresses
|
|
44
|
+
self.public_hosts = dns.get_dns_result().hostnames
|
|
45
|
+
|
|
46
|
+
def build(self, context: ExecutionContext,):
|
|
47
47
|
caddyfile = """
|
|
48
48
|
{
|
|
49
49
|
auto_https off
|
|
@@ -18,7 +18,7 @@ arkitekt_next/bloks/arkitekt.py,sha256=-ZITnWpkzpniUZQ7ZPjCH_RVqyCNPBtYnXWNTHd4e
|
|
|
18
18
|
arkitekt_next/bloks/config.py,sha256=SqJg9kB0AQ62b_WpIKgJ8Jpcqpc-AKN7gdEj87O-UGY,1268
|
|
19
19
|
arkitekt_next/bloks/fluss.py,sha256=0It4jxafGH-ehzXvd1eC9Tq9ZP4Kjra24eaHBCIaHJM,2820
|
|
20
20
|
arkitekt_next/bloks/funcs.py,sha256=6QImH3eOSd6KXd8XfaulexAzy16A_J8GJi58Q18MQms,2641
|
|
21
|
-
arkitekt_next/bloks/gateway.py,sha256=
|
|
21
|
+
arkitekt_next/bloks/gateway.py,sha256=pym9pw8ycGgTzeskirkUZ19akvCitLabgQlU1r-wZdM,5021
|
|
22
22
|
arkitekt_next/bloks/internal_docker.py,sha256=HWGgt4Jjr1ftEFwkYiw7m02eTiNAK5vaRYVtn0Jskd8,2255
|
|
23
23
|
arkitekt_next/bloks/kabinet.py,sha256=ELGAkBQWarS5A-leTE2tXLgwrcXQBPz_FgLbMkYdJcU,3002
|
|
24
24
|
arkitekt_next/bloks/livekit.py,sha256=Es0CJcQJJjyYD4OBa3_6K8bHmQRsikrECgnPflFCO4E,2694
|
|
@@ -140,8 +140,8 @@ arkitekt_next/qt/utils.py,sha256=MgBPtPmCSBkIuATov3UgREESwxAHh77lWNNxyE7Qs48,773
|
|
|
140
140
|
arkitekt_next/service_registry.py,sha256=pczUuP_Nve7OYwB7-oDBLIw6bkjZPnzL3xFca5TF1io,3405
|
|
141
141
|
arkitekt_next/tqdm.py,sha256=DlrxPluHao7TvW-Cqgt0UokRS-fM2_ZNiWiddqvCqCc,1488
|
|
142
142
|
arkitekt_next/utils.py,sha256=gmKWy9M51vimohmmaoIpAJ0CaB22TFP0w3JszRrwiak,2379
|
|
143
|
-
arkitekt_next-0.7.
|
|
144
|
-
arkitekt_next-0.7.
|
|
145
|
-
arkitekt_next-0.7.
|
|
146
|
-
arkitekt_next-0.7.
|
|
147
|
-
arkitekt_next-0.7.
|
|
143
|
+
arkitekt_next-0.7.35.dist-info/LICENSE,sha256=YZ2oRjC248t-GpoEyw7J13vwKYNG6zhYMaEAix6EzF0,1089
|
|
144
|
+
arkitekt_next-0.7.35.dist-info/METADATA,sha256=xCnta1qQtU-CexVP_QiIJIA0cGNX2CyRBjmny2jQN0k,5500
|
|
145
|
+
arkitekt_next-0.7.35.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
146
|
+
arkitekt_next-0.7.35.dist-info/entry_points.txt,sha256=-hxikQx4xZ6TiOnWVDOlTN_kcAISgGFvTHXIchsCHSc,60
|
|
147
|
+
arkitekt_next-0.7.35.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|