គេហទំព័រផ្លូវការរបស់ក្រសួងស្ថាប័នរាជរដ្ឋាភិបាលកម្ពុជា

ស្វែងយល់បន្ថែម

គេហទំព័រផ្លូវការប្រើប្រាស់ .gov.kh

គេហទំព័រ .gov.kh ជាកម្មសិទ្ធិរបស់ស្ថាប័នរាជរដ្ឋាភិបាលផ្លូវការនៅកម្ពុជា។

គេហទំព័រ .gov.kh ដែលមានសុវត្ថិភាពប្រើ HTTPS

គេហទំព័រ .gov.kh ជាកម្មសិទ្ធិរបស់ស្ថាប័នរាជរដ្ឋាភិបាលផ្លូវការនៅកម្ពុជា។

Twitter X Streamline Icon: https://streamlinehq.com
06-11-2026

Kh Speed

<?php
/**
 * KH Speed Engine — preload overrides for Docker/Traefik hosting.
 *
 * Add through Code Snippets (Run everywhere) or a child theme functions.php.
 * Do not add to the KH Speed Engine plugin; updates would remove it.
 */

add_action( 'init', function () {
	$allowed_hosts = array( 'new.mptc.cloud', 'www.new.mptc.cloud' );
	$current_host  = strtolower( (string) wp_parse_url( home_url( '/' ), PHP_URL_HOST ) );

	// Only apply on this site; other sites are untouched.
	if ( ! in_array( $current_host, $allowed_hosts, true ) ) {
		return;
	}

	// Docker/Traefik routes the public hostname to a private IP.
	// Do not block a PHP-FPM worker waiting on a request back to itself.
	add_filter( 'khse_preload_treat_private_as_local', '__return_true' );
	add_filter( 'khse_preload_blocking', '__return_false' );

	// The internal Traefik certificate is self-signed.
	// Remove this line if the origin certificate becomes publicly trusted.
	add_filter( 'khse_preload_should_verify_ssl', '__return_false' );
}, 1 );