2021-05-05 04:45:11 +00:00
|
|
|
{
|
|
|
|
admin off
|
|
|
|
}
|
|
|
|
|
2021-06-12 05:57:59 +00:00
|
|
|
# Add gzip compression to requests
|
|
|
|
(webconf) {
|
|
|
|
encode gzip
|
|
|
|
}
|
|
|
|
|
|
|
|
# Add forward headers to requests
|
|
|
|
(theheaders) {
|
|
|
|
header_up X-Forwarded-Ssl on
|
|
|
|
header_up Host {host}
|
|
|
|
header_up X-Real-IP {remote}
|
|
|
|
header_up X-Forwarded-For {remote}
|
|
|
|
header_up X-Forwarded-Port {server_port}
|
|
|
|
header_up X-Forwarded-Proto {scheme}
|
|
|
|
header_up X-Url-Scheme {scheme}
|
|
|
|
header_up X-Forwarded-Host {host}
|
|
|
|
}
|
|
|
|
|
2021-05-05 04:45:11 +00:00
|
|
|
localhost {
|
2021-06-12 05:57:59 +00:00
|
|
|
log
|
|
|
|
redir /dev-docs /dev-docs/
|
|
|
|
route /dev-docs* {
|
|
|
|
|
|
|
|
uri strip_prefix dev-docs
|
|
|
|
reverse_proxy localhost:8888 {
|
|
|
|
import theheaders
|
|
|
|
}
|
|
|
|
import webconf
|
|
|
|
}
|
2021-05-05 04:45:11 +00:00
|
|
|
}
|