File tree Expand file tree Collapse file tree 17 files changed +159
-28
lines changed Expand file tree Collapse file tree 17 files changed +159
-28
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Nginx Proxy Manager
4
4
5
- ![ Version] ( https://img.shields.io/badge/version-2.0.5 -green.svg?style=for-the-badge )
5
+ ![ Version] ( https://img.shields.io/badge/version-2.0.6 -green.svg?style=for-the-badge )
6
6
![ Stars] ( https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge )
7
7
![ Pulls] ( https://img.shields.io/docker/pulls/jc21/nginx-proxy-manager.svg?style=for-the-badge )
8
8
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
# Nginx Proxy Manager
4
4
5
- ![ Version] ( https://img.shields.io/badge/version-2.0.5 -green.svg?style=for-the-badge )
5
+ ![ Version] ( https://img.shields.io/badge/version-2.0.6 -green.svg?style=for-the-badge )
6
6
![ Stars] ( https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge )
7
7
![ Pulls] ( https://img.shields.io/docker/pulls/jc21/nginx-proxy-manager.svg?style=for-the-badge )
8
8
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nginx-proxy-manager" ,
3
- "version" : " 2.0.5 " ,
3
+ "version" : " 2.0.6 " ,
4
4
"description" : " A beautiful interface for creating Nginx endpoints" ,
5
5
"main" : " src/backend/index.js" ,
6
6
"devDependencies" : {
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const migrate_name = 'http2_support' ;
4
+ const logger = require ( '../logger' ) . migrate ;
5
+
6
+ /**
7
+ * Migrate
8
+ *
9
+ * @see http://knexjs.org/#Schema
10
+ *
11
+ * @param {Object } knex
12
+ * @param {Promise } Promise
13
+ * @returns {Promise }
14
+ */
15
+ exports . up = function ( knex /*, Promise*/ ) {
16
+ logger . info ( '[' + migrate_name + '] Migrating Up...' ) ;
17
+
18
+ return knex . schema . table ( 'proxy_host' , function ( proxy_host ) {
19
+ proxy_host . integer ( 'http2_support' ) . notNull ( ) . unsigned ( ) . defaultTo ( 0 ) ;
20
+ } )
21
+ . then ( ( ) => {
22
+ logger . info ( '[' + migrate_name + '] proxy_host Table altered' ) ;
23
+
24
+ return knex . schema . table ( 'redirection_host' , function ( redirection_host ) {
25
+ redirection_host . integer ( 'http2_support' ) . notNull ( ) . unsigned ( ) . defaultTo ( 0 ) ;
26
+ } ) ;
27
+ } )
28
+ . then ( ( ) => {
29
+ logger . info ( '[' + migrate_name + '] redirection_host Table altered' ) ;
30
+
31
+ return knex . schema . table ( 'dead_host' , function ( dead_host ) {
32
+ dead_host . integer ( 'http2_support' ) . notNull ( ) . unsigned ( ) . defaultTo ( 0 ) ;
33
+ } ) ;
34
+ } )
35
+ . then ( ( ) => {
36
+ logger . info ( '[' + migrate_name + '] dead_host Table altered' ) ;
37
+ } ) ;
38
+ } ;
39
+
40
+ /**
41
+ * Undo Migrate
42
+ *
43
+ * @param {Object } knex
44
+ * @param {Promise } Promise
45
+ * @returns {Promise }
46
+ */
47
+ exports . down = function ( knex , Promise ) {
48
+ logger . warn ( '[' + migrate_name + '] You can\'t migrate down this one.' ) ;
49
+ return Promise . resolve ( true ) ;
50
+ } ;
51
+
Original file line number Diff line number Diff line change 186
186
"type" : " string" ,
187
187
"pattern" : " ^(letsencrypt|other)$"
188
188
},
189
+ "http2_support" : {
190
+ "description" : " HTTP2 Protocol Support" ,
191
+ "example" : false ,
192
+ "type" : " boolean"
193
+ },
189
194
"block_exploits" : {
190
195
"description" : " Should we block common exploits" ,
191
196
"example" : true ,
Original file line number Diff line number Diff line change 24
24
"ssl_forced" : {
25
25
"$ref" : " ../definitions.json#/definitions/ssl_forced"
26
26
},
27
+ "http2_support" : {
28
+ "$ref" : " ../definitions.json#/definitions/http2_support"
29
+ },
27
30
"advanced_config" : {
28
31
"type" : " string"
29
32
},
50
53
"ssl_forced" : {
51
54
"$ref" : " #/definitions/ssl_forced"
52
55
},
56
+ "http2_support" : {
57
+ "$ref" : " #/definitions/http2_support"
58
+ },
53
59
"advanced_config" : {
54
60
"$ref" : " #/definitions/advanced_config"
55
61
},
101
107
"ssl_forced" : {
102
108
"$ref" : " #/definitions/ssl_forced"
103
109
},
110
+ "http2_support" : {
111
+ "$ref" : " #/definitions/http2_support"
112
+ },
104
113
"advanced_config" : {
105
114
"$ref" : " #/definitions/advanced_config"
106
115
},
138
147
"ssl_forced" : {
139
148
"$ref" : " #/definitions/ssl_forced"
140
149
},
150
+ "http2_support" : {
151
+ "$ref" : " #/definitions/http2_support"
152
+ },
141
153
"advanced_config" : {
142
154
"$ref" : " #/definitions/advanced_config"
143
155
},
Original file line number Diff line number Diff line change 34
34
"ssl_forced" : {
35
35
"$ref" : " ../definitions.json#/definitions/ssl_forced"
36
36
},
37
+ "http2_support" : {
38
+ "$ref" : " ../definitions.json#/definitions/http2_support"
39
+ },
37
40
"block_exploits" : {
38
41
"$ref" : " ../definitions.json#/definitions/block_exploits"
39
42
},
80
83
"ssl_forced" : {
81
84
"$ref" : " #/definitions/ssl_forced"
82
85
},
86
+ "http2_support" : {
87
+ "$ref" : " #/definitions/http2_support"
88
+ },
83
89
"block_exploits" : {
84
90
"$ref" : " #/definitions/block_exploits"
85
91
},
151
157
"ssl_forced" : {
152
158
"$ref" : " #/definitions/ssl_forced"
153
159
},
160
+ "http2_support" : {
161
+ "$ref" : " #/definitions/http2_support"
162
+ },
154
163
"block_exploits" : {
155
164
"$ref" : " #/definitions/block_exploits"
156
165
},
206
215
"ssl_forced" : {
207
216
"$ref" : " #/definitions/ssl_forced"
208
217
},
218
+ "http2_support" : {
219
+ "$ref" : " #/definitions/http2_support"
220
+ },
209
221
"block_exploits" : {
210
222
"$ref" : " #/definitions/block_exploits"
211
223
},
Original file line number Diff line number Diff line change 32
32
"ssl_forced" : {
33
33
"$ref" : " ../definitions.json#/definitions/ssl_forced"
34
34
},
35
+ "http2_support" : {
36
+ "$ref" : " ../definitions.json#/definitions/http2_support"
37
+ },
35
38
"block_exploits" : {
36
39
"$ref" : " ../definitions.json#/definitions/block_exploits"
37
40
},
67
70
"ssl_forced" : {
68
71
"$ref" : " #/definitions/ssl_forced"
69
72
},
73
+ "http2_support" : {
74
+ "$ref" : " #/definitions/http2_spport"
75
+ },
70
76
"block_exploits" : {
71
77
"$ref" : " #/definitions/block_exploits"
72
78
},
128
134
"ssl_forced" : {
129
135
"$ref" : " #/definitions/ssl_forced"
130
136
},
137
+ "http2_support" : {
138
+ "$ref" : " #/definitions/http2_support"
139
+ },
131
140
"block_exploits" : {
132
141
"$ref" : " #/definitions/block_exploits"
133
142
},
174
183
"ssl_forced" : {
175
184
"$ref" : " #/definitions/ssl_forced"
176
185
},
186
+ "http2_support" : {
187
+ "$ref" : " #/definitions/http2_support"
188
+ },
177
189
"block_exploits" : {
178
190
"$ref" : " #/definitions/block_exploits"
179
191
},
Original file line number Diff line number Diff line change 1
1
listen 80;
2
2
{% if certificate -%}
3
- listen 443 ssl;
3
+ listen 443 ssl{% if http2 %} http2{% endif %} ;
4
4
{% endif %}
5
- server_name {{ domain_names | join: " " }};
5
+ server_name {{ domain_names | join: " " }};
You can’t perform that action at this time.
0 commit comments