Dear Ok,
Thank you for raising your question to the Wefugee community!
Unfortunately, it is not easy to get exempted from the "Wohnsitzauflage". The best way is to find a job in the city you want to live in. Requirements for that job would be that you need to work at least 15 hours a week and earn 710 Euros after tax per month.
In my experience, the Ausländerbehörde would only agree to change the city concerning your health issues if you could prove, that a treatment is not possible at the place you are residing right now.
As far as I understood, you received the refugee recognition and a residence permit for three years accordingly (§25 Abs.2 AufenthG)? I assume that you receive money from the jobcenter, which would mean, that you can search for a flat yourself. If the rent and the heating costs are appropriate, the jobcenter would also pay your private flat. You would not need to stay in the community accommodation.
I hope this information are useful for you.
Get better soon and all the best,
Meike