Skip to content

Commit ae334c1

Browse files
committed
chore(icon): change the default console icon to the logo with a transparent background
1 parent 08869f7 commit ae334c1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ INITIAL_AUTH_INDEX=1
3838
# Custom favicon URL for the web interface
3939
# Supports any image format (ICO, PNG, SVG, etc.) and any size
4040
# Common sizes: 16x16, 32x32, 48x48 (ICO/PNG) or vector (SVG)
41-
# Default: /AIStudio_icon.svg (local SVG icon)
41+
# Default: /AIStudio_logo.svg (local SVG icon)
4242
# Example: https://example.com/favicon.ico
4343
# If not set, the default local icon will be used
4444
ICON_URL=

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ This endpoint is forwarded to the official Gemini API format endpoint.
172172
| `API_KEYS` | Comma-separated list of valid API keys for authentication. | `123456` |
173173
| `PORT` | API server port. | `7860` |
174174
| `HOST` | Server listening host address. | `0.0.0.0` |
175-
| `ICON_URL` | Custom favicon URL for the console. Supports ICO, PNG, SVG, etc. | `/AIStudio_icon.svg` |
175+
| `ICON_URL` | Custom favicon URL for the console. Supports ICO, PNG, SVG, etc. | `/AIStudio_logo.svg` |
176176
| `SECURE_COOKIES` | Enable secure cookies. `true` for HTTPS only, `false` for both HTTP and HTTPS. | `false` |
177177

178178
#### 🌐 Proxy Configuration

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ sudo docker compose down
172172
| `API_KEYS` | 用于身份验证的有效 API 密钥列表(使用逗号分隔)。 | `123456` |
173173
| `PORT` | API 服务器端口。 | `7860` |
174174
| `HOST` | 服务器监听的主机地址。 | `0.0.0.0` |
175-
| `ICON_URL` | 用于自定义控制台的 favicon 图标。支持 ICO, PNG, SVG 等格式。 | `/AIStudio_icon.svg` |
175+
| `ICON_URL` | 用于自定义控制台的 favicon 图标。支持 ICO, PNG, SVG 等格式。 | `/AIStudio_logo.svg` |
176176
| `SECURE_COOKIES` | 是否启用安全 Cookie。`true` 表示仅支持 HTTPS 协议访问控制台。 | `false` |
177177

178178
#### 🌐 代理配置

src/proxyServerSystem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ProxyServerSystem extends EventEmitter {
120120
"/api/set-mode", "/api/toggle-force-thinking", "/api/toggle-force-web-search", "/api/toggle-force-url-context"];
121121

122122
// Skip authentication for static files
123-
const staticPrefixes = ["/styles/", "/AIStudio_icon.svg", "/AIStudio_logo.svg", "/login.js", "/status.js"];
123+
const staticPrefixes = ["/styles/", "/AIStudio_logo.svg", "/AIStudio_logo.svg", "/login.js", "/status.js"];
124124
const isStaticFile = staticPrefixes.some(prefix => req.path.startsWith(prefix) || req.path === prefix);
125125

126126
if (whitelistPaths.includes(req.path) || isStaticFile) {

src/webRoutes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class WebRoutes {
204204

205205
// Favicon endpoint (public, no authentication required)
206206
app.get("/favicon.ico", (req, res) => {
207-
const iconUrl = process.env.ICON_URL || "/AIStudio_icon.svg";
207+
const iconUrl = process.env.ICON_URL || "/AIStudio_logo.svg";
208208

209209
// Redirect to the configured icon URL (default: local SVG icon)
210210
// This supports any icon format (ICO, PNG, SVG, etc.) and any size

0 commit comments

Comments
 (0)