Switch instances of bitlab21.com to baseddata.io

This commit is contained in:
Sam 2024-08-13 19:29:56 +01:00
parent 67f1bb2c80
commit 6f5ca2dbda
10 changed files with 13 additions and 13 deletions

View File

@ -1,13 +1,13 @@
[Unit]
Description=Gunicorn instance to serve bitlab21.com
Description=Gunicorn instance to serve baseddata.io
After=network.target
[Service]
User=admin
Group=www-data
WorkingDirectory=/var/www/bitlab21.com/backend
Environment="PATH=/var/www/bitlab21.com/.venv/bin"
ExecStart=/var/www/bitlab21.com/.venv/bin/gunicorn --workers 4 --bind unix:bitlab21.sock -m 007 app:app
WorkingDirectory=/var/www/baseddata.io/backend
Environment="PATH=/var/www/baseddata.io/.venv/bin"
ExecStart=/var/www/baseddata.io/.venv/bin/gunicorn --workers 4 --bind unix:baseddata.sock -m 007 app:app
[Install]
WantedBy=multi-user.target

View File

@ -1,3 +1,3 @@
# License
All work on this site is licensed using [unlicense](https://unlicense.org/). This effectively means all of the content hosted on https://bitlab21.com and in the bitlab21.com repository at https://git.bitlab21.com/sam/bitlab21.com is in the public domain. You can use this material as you wish. Attribution is appreciated, but not required.
All work on this site is licensed using [unlicense](https://unlicense.org/). This effectively means all of the content hosted on https://baseddata.io and in the baseddata repository at https://git.bitlab21.com/sam/bitlab21.com is in the public domain. You can use this material as you wish. Attribution is appreciated, but not required.

View File

@ -1,7 +1,7 @@
<footer>
<div id="footer">
<p>
Bitlab21.com by Sam Chance.
baseddata.io by Sam Chance.
<a href="/license">Uncopywrited.</a>
</p>
</div>

View File

@ -4,7 +4,7 @@
<p id="price"></p>
<script>
fetch("https://api.bitlab21.com/price")
fetch("https://api.baseddata.io/get_json/final__price.json")
.then((response) => response.json())
.then((data) => {
var lastElement = data[data.length - 1];

View File

@ -3,7 +3,7 @@ let myChart;
async function fetchDataForChart(str) {
try {
const apiEndpoint = `https://api.bitlab21.com/bitcoin_business_growth_by_country?cumulative_period_type=365 day&countries=${str}`;
const apiEndpoint = `https://api.baseddata.io/bitcoin_business_growth_by_country?cumulative_period_type=365 day&countries=${str}`;
const response = await fetch(apiEndpoint);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);

View File

@ -4,7 +4,7 @@ async function fetchDataForTable() {
let selectedIndex = dropdown.selectedIndex;
let selectedValue = dropdown.options[selectedIndex].value;
const apiEndpoint =
"https://api.bitlab21.com/bitcoin_business_growth_by_country?latest_date=true";
"https://api.baseddata.io/bitcoin_business_growth_by_country?latest_date=true";
const response = await fetch(
apiEndpoint + `&cumulative_period_type=${selectedValue}`,
);

View File

@ -3,7 +3,7 @@ const myChart = echarts.init(document.getElementById("chart"));
async function fetchDataForChart() {
try {
const apiEndpoint = "https://api.bitlab21.com/get_json/final__price.json";
const apiEndpoint = "https://api.baseddata.io/get_json/final__price.json";
const response = await fetch(apiEndpoint);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);

View File

@ -4,7 +4,7 @@ const myChart = echarts.init(document.getElementById("chart"));
async function fetchDataForChart() {
try {
const apiEndpoint =
"https://api.bitlab21.com/get_json/final__feerate_percentiles.json";
"https://api.baseddata.io/get_json/final__feerate_percentiles.json";
const response = await fetch(apiEndpoint);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);

View File

@ -4,7 +4,7 @@ const myChart = echarts.init(document.getElementById("chart"));
async function fetchDataForChart() {
try {
const apiEndpoint =
"https://api.bitlab21.com/get_json/final__hashrate.json";
"https://api.baseddata.io/get_json/final__hashrate.json";
const response = await fetch(apiEndpoint);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);

View File

@ -4,7 +4,7 @@ const myChart = echarts.init(document.getElementById("chart"));
async function fetchDataForChart() {
try {
const apiEndpoint =
"https://api.bitlab21.com/get_json/final__miner_rewards.json";
"https://api.baseddata.io/get_json/final__miner_rewards.json";
const response = await fetch(apiEndpoint);
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);