33 lines
647 B
Caddyfile
33 lines
647 B
Caddyfile
{
|
|
email hubacek.s@gmail.com
|
|
acme_ca https://acme-v02.api.letsencrypt.org/directory
|
|
}
|
|
|
|
(common_headers) {
|
|
header {
|
|
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
|
X-Content-Type-Options "nosniff"
|
|
X-Frame-Options "DENY"
|
|
X-XSS-Protection "1; mode=block"
|
|
}
|
|
}
|
|
|
|
(common_auth) {
|
|
basicauth {
|
|
Standa $2a$14$Qt8qzPSymY09baSwfhTVw./vsB4debh4UcS5Ty/2yg44vXrGnxTz.
|
|
}
|
|
}
|
|
|
|
deploy.hubacek.cloud {
|
|
@allowed remote_ip 192.168.50.110
|
|
handle @allowed {
|
|
reverse_proxy 127.0.0.1:9001
|
|
}
|
|
respond "Forbidden" 403
|
|
}
|
|
|
|
www.hubacek.cloud {
|
|
redir https://hubacek.cloud{uri} permanent
|
|
}
|
|
|
|
import /opt/homelab/generated/caddy/*.caddy |