# شهادة HTTPS تلقائية من Let's Encrypt — يكفي أن يشير DNS النطاق إلى الخادم.
{$OLYMPIADS_DOMAIN} {
	encode zstd gzip
	reverse_proxy web:3000

	header {
		Strict-Transport-Security "max-age=31536000; includeSubDomains"
		X-Content-Type-Options "nosniff"
		X-Frame-Options "DENY"
		Referrer-Policy "strict-origin-when-cross-origin"
	}
}

# خدمة www بإعادة توجيه دائمة إلى النطاق الرئيسي (يتطلب سجل A لـ www)
www.{$OLYMPIADS_DOMAIN} {
	redir https://{$OLYMPIADS_DOMAIN}{uri} permanent
}
