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
|
||||
burst 5
|
||||
}
|
||||
#log {
|
||||
# output file out.log
|
||||
# level DEBUG
|
||||
#}
|
||||
log {
|
||||
output file out.log
|
||||
#format json
|
||||
level DEBUG
|
||||
}
|
||||
}
|
||||
|
||||
https:// {
|
||||
encode gzip
|
||||
tls {
|
||||
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