-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limitação de usuários e conexõoes pelo .env
- Loading branch information
Showing
6 changed files
with
57 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a40e6c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não funcionou, limitei para 1 usuário, e mesmo assim com esse único usuário consigo abrir varias estancias.
a40e6c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boa tarde, primeiramente tem que se verificar sua necessidade, pois vc cita q limitou usuário e abre instância.
No .env do backend vc deve incluir essas vaiáveis:
USER_LIMIT=3
(Limita a quantidade usuários)CONNECTIONS_LIMIT=1
(Limita a quantidade de conexões)Atentar que para funcionar precisar fazer a verificação, resumindo fazer as alterações nos demais arquivos citados aqui.
a40e6c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Poise @rtenorioh, fiz tal igual essas orientações, e não funcionou.
minha necessidade limitar usuário ao uma instancia e ter um limite de usuários online ao mesmo tempo, Exemplo: usuário Anderson está usando no Chrome, mais ao mesmo tempo ele não consiga usar no celular ou em outra aba até mesmo outro navegador, atualmente posso abrir varias abas e vários navegador e usar tudo ao mesmo tempo com mesmo usuário Anderson.
e segundo exemplo é: tenho usuários Anderson, Oliveira e Tiago e limito só para 3 usuários online ao mesmo tempo, e faço um cadastro de novo usuário Carla, mais o usuário Carla não consiga fazer login ou usando enquanto os 3 usuário(Anderson, Oliveira e Tiago) estiver online.
a40e6c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Boa tarde, neste caso está configurações não irão lhe servir, pois ela limita apenas a criação de usuários e conexões, não limita quantos usuários online.
a40e6c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
você tem alguma ideia de como fazer isso ?? ou por onde começar pesquisar
a40e6c3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ire lhe chamar no Telegram daqui a pouco.