Compare commits

...

10 Commits

Author SHA1 Message Date
Joe Wesch
3da1a49810 Merge 660caa41db into 79d28f03d0 2025-02-07 16:48:13 -06: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
Joe Wesch
660caa41db Merge branch 'NginxProxyManager:develop' into 746_log-domains 2024-03-22 20:52:19 -05:00
Joe Wesch
ae897272ba Merge branch 'develop' of github.com:joewesch/nginx-proxy-manager into 746_log-domains 2023-05-15 19:10:58 +00:00
Joe Wesch
4b8164e14b Changes log filenames from ID to (first) domain 2023-02-11 00:53:39 +00:00
7 changed files with 21 additions and 9 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

@@ -10,8 +10,8 @@ server {
{% include "_hsts.conf" %} {% include "_hsts.conf" %}
{% include "_forced_ssl.conf" %} {% include "_forced_ssl.conf" %}
access_log /data/logs/dead-host-{{ id }}_access.log standard; access_log /data/logs/dead-host-{{ domain_names | first }}_access.log standard;
error_log /data/logs/dead-host-{{ id }}_error.log warn; error_log /data/logs/dead-host-{{ domain_names | first }}_error.log warn;
{{ advanced_config }} {{ advanced_config }}

View File

@@ -22,8 +22,8 @@ proxy_set_header Connection $http_connection;
proxy_http_version 1.1; proxy_http_version 1.1;
{% endif %} {% endif %}
access_log /data/logs/proxy-host-{{ id }}_access.log proxy; access_log /data/logs/proxy-host-{{ domain_names | first }}_access.log proxy;
error_log /data/logs/proxy-host-{{ id }}_error.log warn; error_log /data/logs/proxy-host-{{ domain_names | first }}_error.log warn;
{{ advanced_config }} {{ advanced_config }}

View File

@@ -12,8 +12,8 @@ server {
{% include "_hsts.conf" %} {% include "_hsts.conf" %}
{% include "_forced_ssl.conf" %} {% include "_forced_ssl.conf" %}
access_log /data/logs/redirection-host-{{ id }}_access.log standard; access_log /data/logs/redirection-host-{{ domain_names | first }}_access.log standard;
error_log /data/logs/redirection-host-{{ id }}_error.log warn; error_log /data/logs/redirection-host-{{ domain_names | first }}_error.log warn;
{{ advanced_config }} {{ advanced_config }}