-
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.
- Loading branch information
Showing
11 changed files
with
142 additions
and
49 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
26 changes: 26 additions & 0 deletions
26
backend/src/database/seeds/20241118200400-create-masteradmin-user.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { QueryInterface } from "sequelize"; | ||
|
||
module.exports = { | ||
up: async (queryInterface: QueryInterface) => { | ||
return queryInterface.bulkInsert( | ||
"Users", | ||
[ | ||
{ | ||
name: "MasterAdmin", | ||
email: "[email protected]", | ||
passwordHash: | ||
"$2a$08$nLlBSlHj.6XJNFLq.FSjVOjp4rSFHtFYHSUewBIQhceOv4gXU3yLC", | ||
profile: "masteradmin", | ||
tokenVersion: 0, | ||
createdAt: new Date(), | ||
updatedAt: new Date() | ||
} | ||
], | ||
{} | ||
); | ||
}, | ||
|
||
down: async (queryInterface: QueryInterface) => { | ||
return queryInterface.bulkDelete("Users", {}); | ||
} | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,14 +307,14 @@ npm install | |
#URL BACKEND | ||
REACT_APP_BACKEND_URL=https://back.pressticket.com.br | ||
|
||
#Tempo de encerramento automático dos tickets | ||
#Tempo de encerramento automático dos tickets em horas | ||
REACT_APP_HOURS_CLOSE_TICKETS_AUTO= | ||
|
||
#Nome da Guia do navegador | ||
REACT_APP_PAGE_TITLE=PressTicket | ||
|
||
#PORTA do frontend | ||
PORT=3333 | ||
|
||
#Para permitir acesso apenas do MasterAdmin (sempre ON) | ||
REACT_APP_MASTERADMIN=OFF | ||
``` | ||
|
||
### 8.4 Editando o arquivo .env do frontend usando os dados do item 8.3 | ||
|
@@ -464,7 +464,7 @@ sudo nano /etc/nginx/nginx.conf | |
### 9.12 Incluir no arquivos de configuração do nginx dentro do http no item 9.11 | ||
|
||
``` | ||
client_max_body_size 20M; | ||
client_max_body_size 50M; | ||
``` | ||
|
||
### 9.13 Testando o Nginx | ||
|
@@ -522,3 +522,17 @@ Senha: | |
``` | ||
admin | ||
``` | ||
|
||
# Seção 12: Usuário Master para Acesso | ||
|
||
Usuário: | ||
|
||
``` | ||
[email protected] | ||
``` | ||
|
||
Senha: | ||
|
||
``` | ||
masteradmin | ||
``` |
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