From 054742539fad428dc5c471dd8361abe625c8ed4d Mon Sep 17 00:00:00 2001 From: jerry-yuan Date: Sat, 31 Jan 2026 14:17:05 +0000 Subject: [PATCH] fix: Supplement Swagger documentation --- backend/schema/components/proxy-host-object.json | 1 + backend/schema/paths/nginx/proxy-hosts/get.json | 3 ++- backend/schema/paths/nginx/proxy-hosts/hostID/get.json | 1 + backend/schema/paths/nginx/proxy-hosts/hostID/put.json | 1 + backend/schema/paths/nginx/proxy-hosts/post.json | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/schema/components/proxy-host-object.json b/backend/schema/components/proxy-host-object.json index cebbe0e6..3ac64621 100644 --- a/backend/schema/components/proxy-host-object.json +++ b/backend/schema/components/proxy-host-object.json @@ -144,6 +144,7 @@ }, "trust_forwarded_proto":{ "type": "boolean", + "description": "Trust the forwarded headers", "example": false }, "certificate": { diff --git a/backend/schema/paths/nginx/proxy-hosts/get.json b/backend/schema/paths/nginx/proxy-hosts/get.json index 7f8cb148..301e28bf 100644 --- a/backend/schema/paths/nginx/proxy-hosts/get.json +++ b/backend/schema/paths/nginx/proxy-hosts/get.json @@ -58,7 +58,8 @@ "enabled": true, "locations": [], "hsts_enabled": false, - "hsts_subdomains": false + "hsts_subdomains": false, + "trust_forwarded_proto": false } ] } diff --git a/backend/schema/paths/nginx/proxy-hosts/hostID/get.json b/backend/schema/paths/nginx/proxy-hosts/hostID/get.json index 351451c4..2e677fed 100644 --- a/backend/schema/paths/nginx/proxy-hosts/hostID/get.json +++ b/backend/schema/paths/nginx/proxy-hosts/hostID/get.json @@ -56,6 +56,7 @@ "locations": [], "hsts_enabled": false, "hsts_subdomains": false, + "trust_forwarded_proto": false, "owner": { "id": 1, "created_on": "2025-10-28T00:50:24.000Z", diff --git a/backend/schema/paths/nginx/proxy-hosts/hostID/put.json b/backend/schema/paths/nginx/proxy-hosts/hostID/put.json index 98b370bc..fc319845 100644 --- a/backend/schema/paths/nginx/proxy-hosts/hostID/put.json +++ b/backend/schema/paths/nginx/proxy-hosts/hostID/put.json @@ -125,6 +125,7 @@ "locations": [], "hsts_enabled": false, "hsts_subdomains": false, + "trust_forwarded_proto": false, "owner": { "id": 1, "created_on": "2025-10-28T00:50:24.000Z", diff --git a/backend/schema/paths/nginx/proxy-hosts/post.json b/backend/schema/paths/nginx/proxy-hosts/post.json index e0763d9d..28ddad8f 100644 --- a/backend/schema/paths/nginx/proxy-hosts/post.json +++ b/backend/schema/paths/nginx/proxy-hosts/post.json @@ -122,6 +122,7 @@ "locations": [], "hsts_enabled": false, "hsts_subdomains": false, + "trust_forwarded_proto": false, "certificate": null, "owner": { "id": 1,