[1.7.x] Fixed #22380 -- Missing SECRET_KEY variable in sample settings file for testing

Backport of 8f621b83e9 from master.