Compare commits

...

9 Commits

Author SHA1 Message Date
Mathieu Delestre
e7efd60554
Merge 88fda48201cdcf7517b699c341e7cbbae16631df into 79d28f03d035114b80dcd04845306ecb98175074 2025-02-07 09:33:25 +01:00
jc21
79d28f03d0
Merge pull request #4346 from Sander0542/feature/security-schemes-component
All checks were successful
Close stale issues and PRs / stale (push) Successful in 4s
API Schema Improvements
2025-02-07 12:39:49 +10:00
Sander Jochems
df48b835c4
Update order to match others 2025-02-05 22:20:21 +01:00
Sander Jochems
8a1557154a
Add certificate fields to boolFields 2025-02-05 22:15:12 +01:00
Sander Jochems
a6af5ec2c7
Remove certificate as required from proxy host 2025-02-05 18:18:50 +01:00
Sander Jochems
14d7c35fd7
Fix whitespaces 2025-02-05 17:31:09 +01:00
Sander Jochems
cfcf78aaee
Set bearer auth security component 2025-02-05 17:29:40 +01:00
Mathieu D
88fda48201
Merge pull request #1 from ldbglobe/ldbglobe-proxy-list-with-id-displayed
Display proxy ID following the Creation date in proxy list
2024-03-29 15:16:42 +01:00
Mathieu D
5744a3a7ed
Display proxy ID following the Creation date in proxy list
Whenever you need to consult logs or manually modify a configuration on the server, the ID is a key element. Of course, it's possible to find information in the files, but having this information prominently displayed in the list would be a real plus.
2024-03-29 15:14:01 +01:00
5 changed files with 17 additions and 4 deletions

View File

@ -12,7 +12,11 @@ Model.knex(db);
const boolFields = [ const boolFields = [
'is_deleted', 'is_deleted',
'ssl_forced',
'http2_support',
'enabled', 'enabled',
'hsts_enabled',
'hsts_subdomains',
]; ];
class DeadHost extends Model { class DeadHost extends Model {

View File

@ -8,8 +8,8 @@ const now = require('./now_helper');
Model.knex(db); Model.knex(db);
const boolFields = [ const boolFields = [
'enabled',
'is_deleted', 'is_deleted',
'enabled',
'tcp_forwarding', 'tcp_forwarding',
'udp_forwarding', 'udp_forwarding',
]; ];

View File

@ -22,8 +22,7 @@
"enabled", "enabled",
"locations", "locations",
"hsts_enabled", "hsts_enabled",
"hsts_subdomains", "hsts_subdomains"
"certificate"
], ],
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {

View File

@ -9,6 +9,15 @@
"url": "http://127.0.0.1:81/api" "url": "http://127.0.0.1:81/api"
} }
], ],
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
},
"paths": { "paths": {
"/": { "/": {
"get": { "get": {

View File

@ -20,6 +20,7 @@
</div> </div>
<div class="small text-muted"> <div class="small text-muted">
<%- i18n('str', 'created-on', {date: formatDbDate(created_on, 'Do MMMM YYYY')}) %> <%- i18n('str', 'created-on', {date: formatDbDate(created_on, 'Do MMMM YYYY')}) %>
(#<%- id %>)
</div> </div>
</td> </td>
<td> <td>
@ -57,4 +58,4 @@
</div> </div>
</div> </div>
</td> </td>
<% } %> <% } %>