2929 SSH_FILE_PATH ,
3030 SSH_KEY_SIZE ,
3131 SSH_KEY_TYPE ,
32+ SUPERTOKENS_API_PORT ,
3233 VIEW_ENV_FILE ,
3334 VIEW_PORT ,
3435 Config ,
8283 "view_port" : _config .get_yaml_value (VIEW_PORT ),
8384 "api_port" : _config .get_yaml_value (API_PORT ),
8485 "docker_port" : _config .get_yaml_value (DOCKER_PORT ),
85- "supertokens_api_port" : 3567 ,
86+ "supertokens_api_port" : _config . get_yaml_value ( SUPERTOKENS_API_PORT ) ,
8687}
8788
8889
@@ -425,7 +426,7 @@ def _update_environment_variables(self, env_values: dict) -> dict:
425426 view_host = self .view_domain if secure else f"{ host_ip } :{ self ._get_config ('view_port' )} "
426427 protocol = "https" if secure else "http"
427428 ws_protocol = "wss" if secure else "ws"
428- super_tokens_api_port = self ._get_config ("services.api.env.SUPERTOKENS_API_PORT " ) or 3567
429+ supertokens_api_port = self ._get_config ("supertokens_api_port " ) or 3567
429430 key_map = {
430431 "ALLOWED_ORIGIN" : f"{ protocol } ://{ view_host } " ,
431432 "SSH_HOST" : host_ip ,
@@ -438,7 +439,7 @@ def _update_environment_variables(self, env_values: dict) -> dict:
438439 "SUPERTOKENS_API_KEY" : "NixopusSuperTokensAPIKey" ,
439440 "SUPERTOKENS_API_DOMAIN" : f"{ protocol } ://{ api_host } /api" ,
440441 "SUPERTOKENS_WEBSITE_DOMAIN" : f"{ protocol } ://{ view_host } " ,
441- "SUPERTOKENS_CONNECTION_URI" : f"{ protocol } ://{ api_host } :{ super_tokens_api_port } /api" ,
442+ "SUPERTOKENS_CONNECTION_URI" : f"{ protocol } ://{ api_host } :{ supertokens_api_port } /api" ,
442443 }
443444
444445 for key , value in key_map .items ():
0 commit comments