Try this under your mesh:
I assume you want to lock position totally. Unless you want to be able to move the door (break, fall off… etc).
As for rotation, you would have to do it manually. I haven’t played with it much, but probably something in the tick, where you would just clamp it to some value. Not a fan of the Tick logic, but this is the first thing that crosses my mind.