Heat the ghee in a large heavy-bottomed pot over medium-low heat. Add the onions; cook, stirring as needed for about 10 minutes until the onions begin to soften.
Add the ginger and garlic and cook slowly for another 10 minutes. Stir as needed to keep from browning. The onions should get very soft. Add the tomato paste, red curry paste, Sambal Oelek, garam masala, and cinnamon; cook and stir for an additional 2 minutes.
Pour in the coconut milk, chicken stock, and salt and bring back to a simmer; cook until the sauce has thickened, about 20 minutes, stirring occasionally.
Add the tomatoes, chicken, cilantro, and pineapple tidbits; continue to simmer until the chicken is cooked through, about 5 minutes. Taste and adjust the seasonings.
Serve over Jasmine rice. Garnish with cilantro. Squeeze lime juice over curry as desired.