Boundary term involving curvature

A search on the forum reveals for instance: How to compute curvature of a boundary - #2 by dokken