feat: separate real ip header of frontend/agent (#130)

* feat: separate real ip header of frontend/agent

* test(ci): test

* Revert "test(ci): test"

This reverts commit 7d2f16ed24e5f95f6101dc3ac67816ece2dc5ade.

* chore: auto-fix linting and formatting issues
This commit is contained in:
TomyJan
2025-04-13 18:40:35 +08:00
committed by GitHub
parent 833d2d904c
commit 41f62d8cd7
11 changed files with 71 additions and 19 deletions

View File

@@ -648,8 +648,10 @@ export interface ModelSetting {
/** 系统语言,默认 zh_CN */
language: string
oauth2_providers: string[]
/** 真实IP */
real_ip_header: string
/** 前端真实IP */
web_real_ip_header: string
/** Agent真实IP */
agent_real_ip_header: string
site_name: string
/** 用于前端判断生成的安装命令是否启用 TLS */
tls: boolean
@@ -669,8 +671,10 @@ export interface ModelSettingForm {
ip_change_notification_group_id: number
/** @minLength 2 */
language: string
/** 真实IP */
real_ip_header?: string
/** 前端真实IP */
web_real_ip_header?: string
/** Agent真实IP */
agent_real_ip_header?: string
/** @minLength 1 */
site_name: string
tls?: boolean