@@ -82,6 +82,7 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
8282 devInstance : "inherited-instance" ,
8383 synaraHome : "/tmp/inherited-home" ,
8484 authToken : "inherited-secret" ,
85+ host : "0.0.0.0" ,
8586 port : 3773 ,
8687 devUrl : new URL ( "http://localhost:5733" ) ,
8788 } ) ;
@@ -91,6 +92,7 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
9192 devInstance : undefined ,
9293 synaraHome : "./.forkara/contributor" ,
9394 authToken : undefined ,
95+ host : undefined ,
9496 port : undefined ,
9597 devUrl : undefined ,
9698 } ) ;
@@ -104,6 +106,7 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
104106 devInstance : "existing" ,
105107 synaraHome : "/tmp/existing-home" ,
106108 authToken : "existing-secret" ,
109+ host : "192.168.1.50" ,
107110 port : 4222 ,
108111 devUrl,
109112 } ) ;
@@ -113,6 +116,7 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
113116 devInstance : "existing" ,
114117 synaraHome : "/tmp/existing-home" ,
115118 authToken : "existing-secret" ,
119+ host : "192.168.1.50" ,
116120 port : 4222 ,
117121 devUrl,
118122 } ) ;
@@ -122,7 +126,12 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
122126 Effect . gen ( function * ( ) {
123127 const env = yield * createDevRunnerEnv ( {
124128 mode : "dev:contributor" ,
125- baseEnv : { SYNARA_AUTH_TOKEN : "inherited-secret" } ,
129+ baseEnv : {
130+ SYNARA_AUTH_TOKEN : "inherited-secret" ,
131+ SYNARA_HOST : "0.0.0.0" ,
132+ SYNARA_PUBLIC_URL : "https://forkara.example.com" ,
133+ SYNARA_ALLOW_INSECURE_REMOTE : "1" ,
134+ } ,
126135 serverOffset : 3158 ,
127136 webOffset : 3158 ,
128137 synaraHome : "./.forkara/contributor" ,
@@ -139,6 +148,9 @@ it.layer(NodeServices.layer)("dev-runner", (it) => {
139148 assert . equal ( env . SYNARA_PORT , "6931" ) ;
140149 assert . equal ( env . PORT , "8891" ) ;
141150 assert . equal ( env . SYNARA_AUTH_TOKEN , undefined ) ;
151+ assert . equal ( env . SYNARA_HOST , "127.0.0.1" ) ;
152+ assert . equal ( env . SYNARA_PUBLIC_URL , undefined ) ;
153+ assert . equal ( env . SYNARA_ALLOW_INSECURE_REMOTE , undefined ) ;
142154 assert . equal ( env . SYNARA_MODE , "web" ) ;
143155 } ) ,
144156 ) ;
0 commit comments