In a bowl, stir together the chili pepper, garlic, shallots, paprika, five-spice powder and rosemary. Rub the mixture into the chicken, place the bird in a shallow dish, cover and chill overnight or for at least six hours.
Cook the shallots, garlic and bell pepper in the oil, in a pot over moderately low heat. Stir the vegetables until they have softened. Then stir in the paprika, coconut, coconut milk, peanut butter, broth and bay leaf.
In a large skillet, heat the oil over moderately high heat until it is hot but not smoking. Brown the chicken with the potato cubes.
Preheat the oven to 400 degrees F. Transfer the chicken and potatoes to a baking dish, spoon two cups of the sauce over the chicken and bake in the middle of the oven for 25 to 30 minutes, or until the chicken is thoroughly cooked.
Serve the chicken and potatoes with the remaining sauce. Don't forget to remove the bay leaf.