Root ignores the write bit, so chmod does not protect a file from root. The immutable attribute does.
sudo chattr +i /srv/app/settings.conf
lsattr /srv/app/settings.conf
sudo chattr -i /srv/app/settings.conf
With +i the file cannot be changed, renamed, deleted or linked, not even by root, until the flag is removed. That stops a script or an installer from overwriting it, and it also blocks your own edits until you run chattr -i. It works on ext4, XFS and Btrfs. Remember it when a file refuses to change: lsattr shows the flag, which ls -l never does.
Further reading: chattr manual page