Create environment with access to n8n self host

Thank you @RicardoE105
I’m using npm already did the command:

export N8N_BASIC_AUTH_ACTIVE=true
export N8N_BASIC_AUTH_USER=user1
export N8N_BASIC_AUTH_PASSWORD=123456

It should works, all right?
However anyone can be access, keeping without protected.
Is there another way to set this env variables?