fxlinux commited on
Commit
1731e45
·
verified ·
1 Parent(s): 82cbc8b

Update main.ts

Browse files
Files changed (1) hide show
  1. main.ts +2 -2
main.ts CHANGED
@@ -9,12 +9,12 @@ import { serve } from "https://deno.land/std@0.203.0/http/server.ts";
9
  // --- 服务器配置 ---
10
  const API_KEY = "your-api-key-here"; // 设置你的API密钥
11
  const SERVER_HOST = "0.0.0.0"; // 服务器地址(Deno Deploy使用0.0.0.0)
12
- const SERVER_PORT = 8000; // 服务器监听端口
13
 
14
  // --- 图片链接配置 ---
15
  const CUSTOM_IMAGE_BASE_URL = ""; // 自定义图片基础URL,留空则使用自动检测
16
  const INCLUDE_PORT_IN_URL = false; // 是否在URL中包含端口号(Deno Deploy通常不需要)
17
- const CUSTOM_PORT = 8000; // 自定义端口号(当INCLUDE_PORT_IN_URL为true时使用)
18
 
19
  // --- 图片服务配置 ---
20
  const IMAGE_DIR = "/tmp/public/images"; // 图片存储目录(使用/tmp目录)
 
9
  // --- 服务器配置 ---
10
  const API_KEY = "your-api-key-here"; // 设置你的API密钥
11
  const SERVER_HOST = "0.0.0.0"; // 服务器地址(Deno Deploy使用0.0.0.0)
12
+ const SERVER_PORT = 7860; // 服务器监听端口
13
 
14
  // --- 图片链接配置 ---
15
  const CUSTOM_IMAGE_BASE_URL = ""; // 自定义图片基础URL,留空则使用自动检测
16
  const INCLUDE_PORT_IN_URL = false; // 是否在URL中包含端口号(Deno Deploy通常不需要)
17
+ const CUSTOM_PORT = 7860; // 自定义端口号(当INCLUDE_PORT_IN_URL为true时使用)
18
 
19
  // --- 图片服务配置 ---
20
  const IMAGE_DIR = "/tmp/public/images"; // 图片存储目录(使用/tmp目录)