Alinha config do RustDesk
This commit is contained in:
parent
ef1db284fa
commit
5daa954840
2 changed files with 4 additions and 6 deletions
|
|
@ -150,15 +150,11 @@ fn write_file(path: &Path, contents: &str) -> Result<(), io::Error> {
|
||||||
|
|
||||||
fn build_config_contents() -> String {
|
fn build_config_contents() -> String {
|
||||||
format!(
|
format!(
|
||||||
r#"rendezvous_server = "{host}"
|
r#"[options]
|
||||||
relay_server = "{host}"
|
|
||||||
api_server = ""
|
|
||||||
serial = 0
|
|
||||||
|
|
||||||
[options]
|
|
||||||
key = "{key}"
|
key = "{key}"
|
||||||
relay-server = "{host}"
|
relay-server = "{host}"
|
||||||
custom-rendezvous-server = "{host}"
|
custom-rendezvous-server = "{host}"
|
||||||
|
api-server = "https://{host}"
|
||||||
"#,
|
"#,
|
||||||
host = SERVER_HOST,
|
host = SERVER_HOST,
|
||||||
key = SERVER_KEY
|
key = SERVER_KEY
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ import { api } from "@/convex/_generated/api"
|
||||||
import { createCorsPreflight, jsonWithCors } from "@/server/cors"
|
import { createCorsPreflight, jsonWithCors } from "@/server/cors"
|
||||||
import { createConvexClient, ConvexConfigurationError } from "@/server/convex-client"
|
import { createConvexClient, ConvexConfigurationError } from "@/server/convex-client"
|
||||||
|
|
||||||
|
export const runtime = "nodejs"
|
||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
machineToken: z.string().min(1),
|
machineToken: z.string().min(1),
|
||||||
provider: z.string().min(1),
|
provider: z.string().min(1),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue