While there have been reports of gay people being punished for same-sex relations in recent times in Indonesia, it’s not illegal under national law. It is however against the rules in the Muslim majority province of Aceh. The same rules apply for Muslims in the city of Palembang in South Sumatra.
Gay people are not allowed to serve in the military, and they do not have discrimination protections. There is also no recognition of same-sex relationships.
Transgender people are allowed to change their sex, but with several conditions. It should be noted just because being LGBT is legal it doesn’t mean that LGBT+ people do not face discrimination or even violence in their day to day lives in Indonesia.