Px4 overwrites GPS config

I’m using u-blox F9P with Px4. I have my own configuration what to output on Serial2, but it seems Px4 overwrites it. What is the output format on serial2 that Px4 enables? And more importantly, how to prevent Px4 from reconfiguring my GPS unit?