mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-11 14:35:17 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -585,7 +585,10 @@ export const HandleBackup = ({
|
|||||||
<FormLabel>Database</FormLabel>
|
<FormLabel>Database</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
disabled={databaseType === "web-server" || databaseType === "libsql"}
|
disabled={
|
||||||
|
databaseType === "web-server" ||
|
||||||
|
databaseType === "libsql"
|
||||||
|
}
|
||||||
placeholder={"dokploy"}
|
placeholder={"dokploy"}
|
||||||
{...field}
|
{...field}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -211,7 +211,12 @@ export const RestoreBackup = ({
|
|||||||
defaultValues: {
|
defaultValues: {
|
||||||
destinationId: "",
|
destinationId: "",
|
||||||
backupFile: "",
|
backupFile: "",
|
||||||
databaseName: databaseType === "web-server" ? "dokploy" : databaseType === "libsql" ? "iku.db" : "",
|
databaseName:
|
||||||
|
databaseType === "web-server"
|
||||||
|
? "dokploy"
|
||||||
|
: databaseType === "libsql"
|
||||||
|
? "iku.db"
|
||||||
|
: "",
|
||||||
databaseType:
|
databaseType:
|
||||||
backupType === "compose" ? ("postgres" as DatabaseType) : databaseType,
|
backupType === "compose" ? ("postgres" as DatabaseType) : databaseType,
|
||||||
backupType: backupType,
|
backupType: backupType,
|
||||||
@@ -523,7 +528,10 @@ export const RestoreBackup = ({
|
|||||||
<Input
|
<Input
|
||||||
placeholder="Enter database name"
|
placeholder="Enter database name"
|
||||||
{...field}
|
{...field}
|
||||||
disabled={databaseType === "web-server" || databaseType === "libsql"}
|
disabled={
|
||||||
|
databaseType === "web-server" ||
|
||||||
|
databaseType === "libsql"
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
|
|||||||
+10
-10
@@ -107,13 +107,18 @@ export const ShowExternalLibsqlCredentials = ({ libsqlId }: Props) => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (data?.sqldNode !== "replica") {
|
if (data?.sqldNode !== "replica") {
|
||||||
const grpcPort =
|
const grpcPort = form.watch("externalGRPCPort") || data?.externalGRPCPort;
|
||||||
form.watch("externalGRPCPort") || data?.externalGRPCPort;
|
|
||||||
setGRPCConnectionUrl(
|
setGRPCConnectionUrl(
|
||||||
`http://${data?.databaseUser}:${data?.databasePassword}@${getIp}:${grpcPort}`,
|
`http://${data?.databaseUser}:${data?.databasePassword}@${getIp}:${grpcPort}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, [data?.externalGRPCPort, data?.databasePassword, form, data?.databaseUser, getIp]);
|
}, [
|
||||||
|
data?.externalGRPCPort,
|
||||||
|
data?.databasePassword,
|
||||||
|
form,
|
||||||
|
data?.databaseUser,
|
||||||
|
getIp,
|
||||||
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex w-full flex-col gap-5">
|
<div className="flex w-full flex-col gap-5">
|
||||||
@@ -130,10 +135,7 @@ export const ShowExternalLibsqlCredentials = ({ libsqlId }: Props) => {
|
|||||||
{!getIp && (
|
{!getIp && (
|
||||||
<AlertBlock type="warning">
|
<AlertBlock type="warning">
|
||||||
You need to set an IP address in your{" "}
|
You need to set an IP address in your{" "}
|
||||||
<Link
|
<Link href="/dashboard/settings/server" className="text-primary">
|
||||||
href="/dashboard/settings/server"
|
|
||||||
className="text-primary"
|
|
||||||
>
|
|
||||||
{data?.serverId
|
{data?.serverId
|
||||||
? "Remote Servers -> Server -> Edit Server -> Update IP Address"
|
? "Remote Servers -> Server -> Edit Server -> Update IP Address"
|
||||||
: "Web Server -> Server -> Update Server IP"}
|
: "Web Server -> Server -> Update Server IP"}
|
||||||
@@ -207,9 +209,7 @@ export const ShowExternalLibsqlCredentials = ({ libsqlId }: Props) => {
|
|||||||
name="externalGRPCPort"
|
name="externalGRPCPort"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>
|
<FormLabel>External GRPC Port (Internet)</FormLabel>
|
||||||
External GRPC Port (Internet)
|
|
||||||
</FormLabel>
|
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input
|
<Input
|
||||||
placeholder="5001"
|
placeholder="5001"
|
||||||
|
|||||||
@@ -170,9 +170,21 @@ export const libsqlRouter = createTRPCRouter({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const portsToCheck = [
|
const portsToCheck = [
|
||||||
{ port: input.externalPort, name: "externalPort", current: libsql.externalPort },
|
{
|
||||||
{ port: input.externalGRPCPort, name: "externalGRPCPort", current: libsql.externalGRPCPort },
|
port: input.externalPort,
|
||||||
{ port: input.externalAdminPort, name: "externalAdminPort", current: libsql.externalAdminPort },
|
name: "externalPort",
|
||||||
|
current: libsql.externalPort,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
port: input.externalGRPCPort,
|
||||||
|
name: "externalGRPCPort",
|
||||||
|
current: libsql.externalGRPCPort,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
port: input.externalAdminPort,
|
||||||
|
name: "externalAdminPort",
|
||||||
|
current: libsql.externalAdminPort,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const { port, name, current } of portsToCheck) {
|
for (const { port, name, current } of portsToCheck) {
|
||||||
|
|||||||
Reference in New Issue
Block a user