I may be wrong but I don't think there is any specific distance.
Just use common sense, i.e. don't have a light right at a joist, where its likely to char/burn the timber.
A couple of inches away should be fine.
There is a specific distance and it will be provided by the maker.
They are not all the same.
The makers info will determine the distance on all sides and also the clearance above the fitting.
If you need to find a tradesperson to get your job done, please try our local search below,
or if you are doing it yourself you can find suppliers local to you.
Select the supplier or trade you require, enter your location to begin your search.
Please select a service and enter a location to continue...
Are you a trade or supplier? You can create your listing free at DIYnot Local