2024-02-26, 06:48 AM
(This post was last modified: 2024-02-26, 06:52 AM by bonnzifier. Edited 3 times in total.)
Code:
whatever.duckdns.org {
reverse_proxy localhost:8096
tls {
# replace with your duck token "<token>"
dns duckdns <token>
}
header {
# disable FLoC tracking
Permissions-Policy interest-cohort=()
# enable HSTS
Strict-Transport-Security max-age=31536000;
# disable clients from sniffing the media type
?X-Content-Type-Options nosniff
# clickjacking protection
?X-Frame-Options DENY
# keep referrer data off of HTTP connections
?Referrer-Policy no-referrer-when-downgrade
Content-Security-Policy "upgrade-insecure-requests"
}
}