Caddy - Context deadline exceeded

@francislavoie - I really appreciate your support. I was finally able to fix the issues and get the site working as expected with a few changes.

I added the following lines to the :5001 block:

try_files {path} /index.php?{query}
file_server

I’m pasting my Caddyfile below and would really appreciate it if you could help me optimize it. I wish to know how would you go about configuring the below Caddyfile -

{
	on_demand_tls {
		ask http://localhost:5001/caddy/ask
		interval 2m
		burst 5
	}
	# Global logging settings
	log {
		output file /var/log/caddy/access.log {
			roll_size 100mb # Max size of a log file before it's rolled
			roll_keep 5 # Number of rolled files to keep
			roll_keep_for 720h # Duration to keep rolled files
		}
	}
}

:5001 {
	root * /home/forge/jatra.club/public
	php_fastcgi unix//run/php/php8.2-fpm.sock
	try_files {path} /index.php?{query}
	file_server
}

# Main domain and all subdomains
https://jatra.club, https://*.jatra.club {
	tls {
		on_demand
	}

	root * /home/forge/jatra.club/public
	encode gzip
	file_server
	php_fastcgi unix//run/php/php8.2-fpm.sock
	header {
		# Ensure the header specifying the original host is passed to PHP
		X-Original-Host {host}
	}
}

# Catch-all for any other domain (for your customer's custom domains)
https:// {
	tls {
		on_demand
	}

	root * /home/forge/jatra.club/public
	encode gzip
	file_server
	php_fastcgi unix//run/php/php8.2-fpm.sock
	header {
		# Ensure the header specifying the original host is passed to PHP
		X-Original-Host {host}
	}
}