Skip to content

Commit 79d28f0

Browse files
authored
Merge pull request NginxProxyManager#4346 from Sander0542/feature/security-schemes-component
API Schema Improvements
2 parents c4df89d + df48b83 commit 79d28f0

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

backend/models/dead_host.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ Model.knex(db);
1212

1313
const boolFields = [
1414
'is_deleted',
15+
'ssl_forced',
16+
'http2_support',
1517
'enabled',
18+
'hsts_enabled',
19+
'hsts_subdomains',
1620
];
1721

1822
class DeadHost extends Model {

backend/models/stream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const now = require('./now_helper');
88
Model.knex(db);
99

1010
const boolFields = [
11-
'enabled',
1211
'is_deleted',
12+
'enabled',
1313
'tcp_forwarding',
1414
'udp_forwarding',
1515
];

backend/schema/components/proxy-host-object.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"enabled",
2323
"locations",
2424
"hsts_enabled",
25-
"hsts_subdomains",
26-
"certificate"
25+
"hsts_subdomains"
2726
],
2827
"additionalProperties": false,
2928
"properties": {

backend/schema/swagger.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
"url": "http://127.0.0.1:81/api"
1010
}
1111
],
12+
"components": {
13+
"securitySchemes": {
14+
"bearerAuth": {
15+
"type": "http",
16+
"scheme": "bearer",
17+
"bearerFormat": "JWT"
18+
}
19+
}
20+
},
1221
"paths": {
1322
"/": {
1423
"get": {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy