18 lines
262 B
Caddyfile
18 lines
262 B
Caddyfile
{
|
|
admin off
|
|
}
|
|
|
|
:443 {
|
|
encode gzip
|
|
tls /etc/ssl/certauth/tls.pem /etc/ssl/certauth/tls.key
|
|
|
|
reverse_proxy 127.0.0.1:8000 {
|
|
header_up Host {host}
|
|
header_up X-Real-IP {remote}
|
|
}
|
|
}
|
|
|
|
:80 {
|
|
redir https://{host}{uri} permanent
|
|
}
|