Skip to content

Commit 3cd482f

Browse files
Keszey DánielKeszey Dániel
Keszey Dániel
authored and
Keszey Dániel
committed
possible fix for VPS
1 parent 11c2290 commit 3cd482f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: src/blockscout/blockscout_launcher.star

+10-2
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,19 @@ def get_config_frontend(
248248
blockscout_service,
249249
nth_blockscout,
250250
):
251+
hostName = ""
251252

252253
# Determine network name based on nth_blockscout
253254
if nth_blockscout == 0:
254255
network_name = "Gwyneth L1"
256+
hostName = "l1.explorer.gwyneth.xyz"
257+
255258
else:
256259
# For L2, use L2A, L2B, etc. based on nth_blockscout
257260
l2_suffix = chr(ord('A') + nth_blockscout - 1) # Convert 1 to A, 2 to B, etc.
261+
l2_suffix_lowercase = chr(ord('a') + nth_blockscout - 1)
258262
network_name = "Gwyneth L2{}".format(l2_suffix)
263+
hostName = "l2{}.explorer.gwyneth.xyz".format(l2_suffix_lowercase)
259264

260265
return ServiceConfig(
261266
image=shared_utils.docker_cache_image_calc(
@@ -264,8 +269,11 @@ def get_config_frontend(
264269
),
265270
ports=FRONTEND_USED_PORTS,
266271
env_vars={
267-
"NEXT_PUBLIC_API_PROTOCOL": "http",
268-
"NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL": "ws",
272+
"NEXT_PUBLIC_APP_PROTOCOL": "https",
273+
"NEXT_PUBLIC_APP_HOST"=hostName
274+
"NEXT_PUBLIC_API_PROTOCOL": "https",
275+
"NEXT_PUBLIC_APP_HOST": hostName,
276+
"NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL": "wss",
269277
"NEXT_PUBLIC_NETWORK_NAME": network_name,
270278
"NEXT_PUBLIC_NETWORK_ID": network_params.network_id,
271279
"NEXT_PUBLIC_NETWORK_RPC_URL": el_client_rpc_url,

0 commit comments

Comments
 (0)