Switch instances of bitlab21.com to baseddata.io
This commit is contained in:
parent
67f1bb2c80
commit
6f5ca2dbda
|
@ -1,13 +1,13 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Gunicorn instance to serve bitlab21.com
|
Description=Gunicorn instance to serve baseddata.io
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=admin
|
User=admin
|
||||||
Group=www-data
|
Group=www-data
|
||||||
WorkingDirectory=/var/www/bitlab21.com/backend
|
WorkingDirectory=/var/www/baseddata.io/backend
|
||||||
Environment="PATH=/var/www/bitlab21.com/.venv/bin"
|
Environment="PATH=/var/www/baseddata.io/.venv/bin"
|
||||||
ExecStart=/var/www/bitlab21.com/.venv/bin/gunicorn --workers 4 --bind unix:bitlab21.sock -m 007 app:app
|
ExecStart=/var/www/baseddata.io/.venv/bin/gunicorn --workers 4 --bind unix:baseddata.sock -m 007 app:app
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# License
|
# 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.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<footer>
|
<footer>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<p>
|
<p>
|
||||||
Bitlab21.com by Sam Chance.
|
baseddata.io by Sam Chance.
|
||||||
<a href="/license">Uncopywrited.</a>
|
<a href="/license">Uncopywrited.</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<p id="price"></p>
|
<p id="price"></p>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
fetch("https://api.bitlab21.com/price")
|
fetch("https://api.baseddata.io/get_json/final__price.json")
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
var lastElement = data[data.length - 1];
|
var lastElement = data[data.length - 1];
|
||||||
|
|
|
@ -3,7 +3,7 @@ let myChart;
|
||||||
|
|
||||||
async function fetchDataForChart(str) {
|
async function fetchDataForChart(str) {
|
||||||
try {
|
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);
|
const response = await fetch(apiEndpoint);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|
|
@ -4,7 +4,7 @@ async function fetchDataForTable() {
|
||||||
let selectedIndex = dropdown.selectedIndex;
|
let selectedIndex = dropdown.selectedIndex;
|
||||||
let selectedValue = dropdown.options[selectedIndex].value;
|
let selectedValue = dropdown.options[selectedIndex].value;
|
||||||
const apiEndpoint =
|
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(
|
const response = await fetch(
|
||||||
apiEndpoint + `&cumulative_period_type=${selectedValue}`,
|
apiEndpoint + `&cumulative_period_type=${selectedValue}`,
|
||||||
);
|
);
|
||||||
|
|
|
@ -3,7 +3,7 @@ const myChart = echarts.init(document.getElementById("chart"));
|
||||||
|
|
||||||
async function fetchDataForChart() {
|
async function fetchDataForChart() {
|
||||||
try {
|
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);
|
const response = await fetch(apiEndpoint);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|
|
@ -4,7 +4,7 @@ const myChart = echarts.init(document.getElementById("chart"));
|
||||||
async function fetchDataForChart() {
|
async function fetchDataForChart() {
|
||||||
try {
|
try {
|
||||||
const apiEndpoint =
|
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);
|
const response = await fetch(apiEndpoint);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|
|
@ -4,7 +4,7 @@ const myChart = echarts.init(document.getElementById("chart"));
|
||||||
async function fetchDataForChart() {
|
async function fetchDataForChart() {
|
||||||
try {
|
try {
|
||||||
const apiEndpoint =
|
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);
|
const response = await fetch(apiEndpoint);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|
|
@ -4,7 +4,7 @@ const myChart = echarts.init(document.getElementById("chart"));
|
||||||
async function fetchDataForChart() {
|
async function fetchDataForChart() {
|
||||||
try {
|
try {
|
||||||
const apiEndpoint =
|
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);
|
const response = await fetch(apiEndpoint);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`HTTP error! status: ${response.status}`);
|
throw new Error(`HTTP error! status: ${response.status}`);
|
||||||
|
|
Loading…
Reference in New Issue