Enable gzip & fix favicon
modified: Caddyfile
This commit is contained in:
parent
35da09bf3c
commit
987f46767f
1 changed files with 17 additions and 5 deletions
22
Caddyfile
22
Caddyfile
|
|
@ -10,15 +10,27 @@
|
||||||
interval 2m
|
interval 2m
|
||||||
burst 5
|
burst 5
|
||||||
}
|
}
|
||||||
#log {
|
log {
|
||||||
# output file out.log
|
output file out.log
|
||||||
# level DEBUG
|
#format json
|
||||||
#}
|
level DEBUG
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
https:// {
|
https:// {
|
||||||
|
encode gzip
|
||||||
tls {
|
tls {
|
||||||
on_demand
|
on_demand
|
||||||
}
|
}
|
||||||
reverse_proxy localhost:6001
|
handle_path /static/* {
|
||||||
|
file_server
|
||||||
|
root * /opt/make_post_sell/env/static
|
||||||
|
}
|
||||||
|
handle /favicon.ico {
|
||||||
|
file_server
|
||||||
|
root * /opt/make_post_sell/env/static
|
||||||
|
}
|
||||||
|
handle {
|
||||||
|
reverse_proxy localhost:6001
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue