调整所有IP地址为域名,方便日后管理

This commit is contained in:
BBIT-Kai
2025-08-22 10:29:45 +08:00
parent c431679395
commit 7c9d376ce1
6 changed files with 8 additions and 10 deletions
@@ -28,12 +28,12 @@ const val VIDEO_INPUT_PATH = "C:/tmp/"
* 服务器地址 * 服务器地址
* ADB 秦朗FRP地址 * ADB 秦朗FRP地址
*/ */
const val SERVER_PATH_FRP = "171.212.101.201" const val SERVER_PATH_FRP = "s3.ronsunny.cn" // 171.212.101.201
/** /**
* 服务器地址 * 服务器地址
* OSS 对象存储服务器地址 * OSS 对象存储服务器地址
*/ */
const val SERVER_PATH_OSS = "171.212.101.199" const val SERVER_PATH_OSS = "s1.ronsunny.cn" // 171.212.101.199
val gson = Gson() val gson = Gson()
@@ -5,6 +5,7 @@ import ai.koog.prompt.executor.llms.all.simpleOllamaAIExecutor
import ai.koog.prompt.llm.LLMCapability import ai.koog.prompt.llm.LLMCapability
import ai.koog.prompt.llm.LLMProvider import ai.koog.prompt.llm.LLMProvider
import ai.koog.prompt.llm.LLModel import ai.koog.prompt.llm.LLModel
import ink.snowflake.server.SERVER_PATH_OSS
import ink.snowflake.server.model.response.BaseResponse import ink.snowflake.server.model.response.BaseResponse
import io.ktor.server.application.Application import io.ktor.server.application.Application
import io.ktor.server.response.respond import io.ktor.server.response.respond
@@ -15,7 +16,7 @@ import io.ktor.server.routing.routing
fun Application.AI() { fun Application.AI() {
val agent = AIAgent( val agent = AIAgent(
executor = simpleOllamaAIExecutor("http://171.212.101.199:13011/"), executor = simpleOllamaAIExecutor("http://${SERVER_PATH_OSS}:13011/"),
systemPrompt = "You are a helpful assistant. Answer user questions concisely.", //系统提示词 systemPrompt = "You are a helpful assistant. Answer user questions concisely.", //系统提示词
llmModel = LLModel( llmModel = LLModel(
provider = LLMProvider.Ollama, provider = LLMProvider.Ollama,
@@ -77,7 +77,7 @@ fun Application.RemoteDebug() {
get("/refreshDeviceList") { get("/refreshDeviceList") {
try { try {
val name = call.parameters["name"] val name = call.parameters["name"]
val response: HttpResponse = client.get("http://171.212.101.201:65534/api/proxy/tcp") val response: HttpResponse = client.get("http://${SERVER_PATH_FRP}:65534/api/proxy/tcp")
val responseBody: String = response.bodyAsText() val responseBody: String = response.bodyAsText()
val devicesInfoRequest: DevicesInfoRequest = Gson().fromJson(responseBody, DevicesInfoRequest::class.java) val devicesInfoRequest: DevicesInfoRequest = Gson().fromJson(responseBody, DevicesInfoRequest::class.java)
val onlineDevices = devicesInfoRequest.proxies.stream() val onlineDevices = devicesInfoRequest.proxies.stream()
+1 -1
View File
@@ -1,7 +1,7 @@
VITE_BASE=/ VITE_BASE=/
# 接口地址 # 接口地址
VITE_GLOB_API_URL=http://171.212.101.199:8089/api VITE_GLOB_API_URL=http://s1.ronsunny.cn:8089/api
# 是否开启压缩,可以设置为 none, brotli, gzip # 是否开启压缩,可以设置为 none, brotli, gzip
VITE_COMPRESS=none VITE_COMPRESS=none
@@ -54,7 +54,7 @@ const routes: RouteRecordRaw[] = [
component: IFrameView, component: IFrameView,
meta: { meta: {
icon: 'mdi:wall-fire', icon: 'mdi:wall-fire',
iframeSrc: 'http://171.212.101.199:13010/', iframeSrc: 'http://s1.ronsunny.cn:13010/',
keepAlive: false, keepAlive: false,
title: '检索增强生成', title: '检索增强生成',
}, },
+1 -4
View File
@@ -126,10 +126,7 @@ const disconnectAll = async () => {
</template> </template>
<template #default> <template #default>
<Card class="ml-2 h-full"> <Card class="ml-2 h-full">
<iframe <iframe src="http://s1.ronsunny.cn:8088" class="h-full w-full"></iframe>
src="http://171.212.101.199:8088"
class="h-full w-full"
></iframe>
</Card> </Card>
</template> </template>
</ColPage> </ColPage>