Skip to content

Commit 116a4d5

Browse files
committed
add rocksdb snapshots to public proxy
1 parent e106676 commit 116a4d5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

proxy_public/nginx.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ http {
8484
index index.html index.htm;
8585
}
8686

87+
location ~* ^/(?<chain_name>.+)/rocksdb/(.*) {
88+
proxy_pass http://tasks.rocksdb_snapshot_$chain_name/$2$is_args$args;
89+
}
90+
8791
location ~* ^/(?<chain_name>.+)/(.*) {
8892
proxy_pass http://tasks.snapshot_$chain_name/$2$is_args$args;
8993
}

proxy_public/run.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SERVICES=$(curl -s https://raw.githubusercontent.com/notional-labs/cosmosia/main
1414

1515
get_links () {
1616
for service_name in $SERVICES; do
17-
echo "<p><a href=\"/${service_name}/\">$service_name</a></p>"
17+
echo "<p>$service_name <a href=\"/${service_name}/\">goleveldb</a> <a href=\"/${service_name}/rocksdb/\">rocksdb</a></p>"
1818
done
1919
}
2020

@@ -25,11 +25,11 @@ cat <<EOT > /usr/share/nginx/html/index.html
2525
<html lang="en">
2626
<head>
2727
<meta charset="UTF-8">
28-
<title>Cosmosia</title>
28+
<title>Cosmosia Snapshots</title>
2929
</head>
3030
3131
<body>
32-
<h3>Snapshot:</h3>
32+
<h3>Snapshots:</h3>
3333
${links}
3434
</body>
3535
</html>

0 commit comments

Comments
 (0)