File tree Expand file tree Collapse file tree 10 files changed +557
-536
lines changed Expand file tree Collapse file tree 10 files changed +557
-536
lines changed Original file line number Diff line number Diff line change 1
- caddy
1
+ caddy
2
+ .DS_Store
Original file line number Diff line number Diff line change 1
1
check-module :
2
2
@xcaddy list-modules
3
3
4
- run-module :
5
- xcaddy run -c example/caddy.json
6
-
7
- run-module-caddy :
8
- xcaddy run -c example/Caddyfile
9
-
10
4
build-module :
11
- xcaddy build v2.7.6 --with github.com/devetek/caddyserver-minifier@main=./
5
+ xcaddy build v2.10.0 --with github.com/devetek/caddyserver-minifier@main=./
6
+
7
+ run-jsonfile :
8
+ ./caddy run --config example/caddy.json
12
9
13
- run-build-module :
14
- ./caddy run -c example/caddy.json
10
+ run-caddyfile :
11
+ ./caddy run --config example/Caddyfile
15
12
16
13
run-test :
17
14
@go test -v -cover ./...
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ http://localhost:9200 {
39
39
route {
40
40
minifier {
41
41
html {
42
- KeepConditionalComments true
43
42
KeepSpecialComments true
44
43
KeepComments true
45
44
KeepWhitespace true
@@ -56,6 +55,7 @@ http://localhost:9200 {
56
55
57
56
## Todo
58
57
58
+ - [ ] add Github Action CI to main code quality
59
59
- [ ] Support for another ` Content-Type ` (css, js, etc):
60
60
61
61
``` sh
Original file line number Diff line number Diff line change @@ -104,12 +104,6 @@ func (m *Middleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
104
104
m .Html .KeepQuotes = converterStrToBoolean (d .Val ())
105
105
}
106
106
107
- if d .Val () == "KeepConditionalComments" {
108
- // get value from config
109
- d .NextArg ()
110
- m .Html .KeepConditionalComments = converterStrToBoolean (d .Val ())
111
- }
112
-
113
107
if d .Val () == "KeepSpecialComments" {
114
108
// get value from config
115
109
d .NextArg ()
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ http://localhost:9200 {
3
3
encode zstd gzip
4
4
minifier {
5
5
html {
6
- KeepConditionalComments true
7
6
KeepSpecialComments true
8
7
KeepComments true
9
8
KeepWhitespace true
@@ -13,6 +12,6 @@ http://localhost:9200 {
13
12
KeepQuotes true
14
13
}
15
14
}
16
- reverse_proxy localhost:8097
15
+ reverse_proxy localhost:3000
17
16
}
18
17
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
"apps" : {
3
3
"http" : {
4
4
"servers" : {
5
- "example" : {
6
- "listen" : [" :9200" ],
5
+ "srv0" : {
6
+ "listen" : [
7
+ " :9200"
8
+ ],
7
9
"routes" : [
8
10
{
9
- "match" : [{ "host" : [" localhost" ] }],
10
- "handle" : [
11
+ "match" : [
11
12
{
12
- "handler" : " minifier"
13
- },
13
+ "host" : [
14
+ " localhost"
15
+ ]
16
+ }
17
+ ],
18
+ "handle" : [
14
19
{
15
- "handler" : " reverse_proxy " ,
16
- "upstreams " : [
20
+ "handler" : " subroute " ,
21
+ "routes " : [
17
22
{
18
- "dial" : " localhost:8097"
23
+ "handle" : [
24
+ {
25
+ "handler" : " subroute" ,
26
+ "routes" : [
27
+ {
28
+ "handle" : [
29
+ {
30
+ "encodings" : {
31
+ "gzip" : {},
32
+ "zstd" : {}
33
+ },
34
+ "handler" : " encode" ,
35
+ "prefer" : [
36
+ " zstd" ,
37
+ " gzip"
38
+ ]
39
+ },
40
+ {
41
+ "Html" : {
42
+ "KeepComments" : true ,
43
+ "KeepDefaultAttrVals" : true ,
44
+ "KeepDocumentTags" : true ,
45
+ "KeepEndTags" : true ,
46
+ "KeepQuotes" : true ,
47
+ "KeepSpecialComments" : true ,
48
+ "KeepWhitespace" : true ,
49
+ "TemplateDelims" : [
50
+ " " ,
51
+ " "
52
+ ]
53
+ },
54
+ "handler" : " minifier"
55
+ },
56
+ {
57
+ "handler" : " reverse_proxy" ,
58
+ "upstreams" : [
59
+ {
60
+ "dial" : " localhost:3000"
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
68
+ ]
19
69
}
20
70
]
21
71
}
22
- ]
72
+ ],
73
+ "terminal" : true
23
74
}
24
- ]
75
+ ],
76
+ "automatic_https" : {
77
+ "skip" : [
78
+ " localhost"
79
+ ]
80
+ }
25
81
}
26
82
}
27
83
}
28
84
}
29
- }
85
+ }
You can’t perform that action at this time.
0 commit comments