To have/keep a stiff upper lip

to show courage in the face of pain or adversity; to bear difficulties without showing emotion.

e.g. I know you’re upset about losing your job but keep a stiff upper lip.
This idiom presumably refers to the trembling lips before bursting into tears.

It was traditionally thought of as a British trait.