migrate root server
This commit is contained in:
parent
5ef8c35ca8
commit
6e54471102
|
|
@ -7,10 +7,10 @@ This template provides a minimal setup to get React working in Vite with HMR and
|
||||||
Copy `.env.example` to `.env` (or provide the same variables through your deployment system) and adjust the URLs if needed. All frontend traffic (админка, загрузка, просмотр) завязан на `VITE_API_BASE_URL`, поэтому указывайте полный путь до `/api/v1` нужной ноды.
|
Copy `.env.example` to `.env` (or provide the same variables through your deployment system) and adjust the URLs if needed. All frontend traffic (админка, загрузка, просмотр) завязан на `VITE_API_BASE_URL`, поэтому указывайте полный путь до `/api/v1` нужной ноды.
|
||||||
|
|
||||||
```
|
```
|
||||||
VITE_API_BASE_URL=https://my-public-node-8.projscale.dev/api/v1
|
VITE_API_BASE_URL=https://my-public-node-103.projscale.dev/api/v1
|
||||||
```
|
```
|
||||||
|
|
||||||
При таком значении фронт автоматически отправляет tus-запросы на `https://my-public-node-8.projscale.dev/tus/files`, а прогрессивные загрузки (обложки, метаданные) — на `https://my-public-node-8.projscale.dev/api/v1.5/storage`.
|
При таком значении фронт автоматически отправляет tus-запросы на `https://my-public-node-103.projscale.dev/tus/files`, а прогрессивные загрузки (обложки, метаданные) — на `https://my-public-node-103.projscale.dev/api/v1.5/storage`.
|
||||||
|
|
||||||
Currently, two official plugins are available:
|
Currently, two official plugins are available:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ export const Providers = ({ children }: ProvidersProps) => {
|
||||||
<WebAppProvider options={{ smoothButtonsTransition: true }}>
|
<WebAppProvider options={{ smoothButtonsTransition: true }}>
|
||||||
<TonConnectUIProvider
|
<TonConnectUIProvider
|
||||||
manifestUrl={
|
manifestUrl={
|
||||||
"https://my-public-node-8.projscale.dev/api/tonconnect-manifest.json"
|
"https://my-public-node-103.projscale.dev/api/tonconnect-manifest.json"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,13 @@ export const AdminOverviewPage = () => {
|
||||||
copyValue: node.service_wallet ?? null,
|
copyValue: node.service_wallet ?? null,
|
||||||
successMessage: "Service wallet скопирован",
|
successMessage: "Service wallet скопирован",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Highload Wallet",
|
||||||
|
value: node.highload_wallet ?? "—",
|
||||||
|
helper: "Высоконагрузочный",
|
||||||
|
copyValue: node.highload_wallet ?? null,
|
||||||
|
successMessage: "Highload wallet скопирован",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Контент",
|
label: "Контент",
|
||||||
value: `${numberFormatter.format(content.encrypted_total)} зашифр.`,
|
value: `${numberFormatter.format(content.encrypted_total)} зашифр.`,
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ export type AdminOverviewResponse = {
|
||||||
id: string;
|
id: string;
|
||||||
service_wallet: string;
|
service_wallet: string;
|
||||||
ton_master: string;
|
ton_master: string;
|
||||||
|
highload_wallet: string | null;
|
||||||
};
|
};
|
||||||
runtime: {
|
runtime: {
|
||||||
python: string;
|
python: string;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import { request } from "~/shared/libs";
|
||||||
import { Royalty } from "~/shared/stores/root";
|
import { Royalty } from "~/shared/stores/root";
|
||||||
|
|
||||||
const VIEW_CONTENT_NODE_ORIGINS = [
|
const VIEW_CONTENT_NODE_ORIGINS = [
|
||||||
"https://my-public-node-8.projscale.dev",
|
"https://my-public-node-103.projscale.dev",
|
||||||
"https://my-public-node-7.projscale.dev",
|
"https://my-public-node-7.projscale.dev",
|
||||||
"https://my-public-node-9.projscale.dev",
|
"https://my-public-node-9.projscale.dev",
|
||||||
"https://my-public-node-10.projscale.dev",
|
"https://my-public-node-10.projscale.dev",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue