Skip to content

Commit

Permalink
Add a third endpoint option
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-milovidov committed Feb 12, 2024
1 parent df4d923 commit 2b36277
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
#provider {
left: 7em;
bottom: 1em;
height: 2em;
height: 3em;
padding: 0.1em .3em 0.1em 0.3em;
font-size: 16pt;
}
Expand Down Expand Up @@ -287,13 +287,18 @@
<div id="provider">
<form>
<label>
<input type="radio" name="provider" value="self-hosted" checked>
Self-hosted
<input type="radio" name="provider" value="cloud">
Cloud
</label>
<br/>
<label>
<input type="radio" name="provider" value="cloud">
Cloud
<input type="radio" name="provider" value="self-hosted-intel" checked>
Self-hosted (Intel)
</label>
<br/>
<label>
<input type="radio" name="provider" value="self-hosted-graviton">
Self-hosted (Graviton)
</label>
</form>
</div>
Expand Down Expand Up @@ -367,8 +372,10 @@
function getHost(stick) {
const provider = document.querySelector('input[name="provider"]:checked').value;

if (provider == 'self-hosted') {
if (provider == 'self-hosted-intel') {
return 'https://fly-selfhosted-backend.clickhouse.com';
} if (provider == 'self-hosted-graviton') {
return 'https://fly-selfhosted-backend-2.clickhouse.com';
} else {
let prefix = '';
if (stick) {
Expand Down

0 comments on commit 2b36277

Please sign in to comment.