Download do Windows Server e Widows 10 e Windows 11 pelo site oficial da Microsoft
https://techcommunity.microsoft.com/t5/windows-server-for-it-pro/accessing-trials-and-kits-for-windows-server/m-p/3361205
Download do Windows Server e Widows 10 e Windows 11 pelo site oficial da Microsoft
https://techcommunity.microsoft.com/t5/windows-server-for-it-pro/accessing-trials-and-kits-for-windows-server/m-p/3361205
Segue a versão do yaml do docker compose para Zabbix Server Mysql
version: "3.7" services: n8n: image: docker.n8n.io/n8nio/n8n restart: always ports: - "127.0.0.1:5678:5678" environment: - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME} - N8N_PORT=5678 - N8N_PROTOCOL=https - NODE_ENV=production - WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/ - GENERIC_TIMEZONE=${GENERIC_TIMEZONE} volumes: - ./n8n_data:/home/node/.n8n volumes: n8n_data: external: true
chmod -R 777 n8n_data
Com isso o acesso deve estar normalizado.
Para o sucesso desse tutorial presume-se que o Chatwoot encontra-se instalado e configurado.
Documentação Oficial: http://doc.evolution-api.com/
Git para download: https://github.com/EvolutionAPI/evolution-api
cd git clone https://github.com/EvolutionAPI/evolution-api.git
mv docker-compose.yaml.example docker-compose.yaml
cd Docker mv .env.exemple .env vim .env
# Server URL - Set your application url SERVER_URL=http://192.168.0.254:8081 # Name that will be displayed on smartphone connection CONFIG_SESSION_PHONE_CLIENT=CuidadoDigital ## Define a global apikey to access all instances. ### OBS: This key must be inserted in the request header to create an instance. AUTHENTICATION_API_KEY=Lqxb8hZvimZi2L0OXOxeoy7OmF91tChJjnoC6h5tKejIqQEYikZEmN5gYg3LKiHT
cd ~/evolution-api docker-compose up -d
# Comando curl 127.0.0.1:8081 # Resposta esperada {"status":200,"message":"Welcome to the Evolution API, it is working!","version":"1.5.1"}
curl -X POST http://127.0.0.1:8081/instance/create \ -H "apikey: B6D711FCDE4D4120E713976" \ -H "Content-Type: application/json" \ -d '{ "instanceName": "Whatsapp", "token": "", "qrcode": true, "chatwoot_account_id": 1, "chatwoot_token": "cndZK3pd6safasdfas1seb27oUNzf8FPx", "chatwoot_url": "https://app.minhaempresa.com.br/", "chatwoot_sign_msg": true, "chatwoot_reopen_conversation": true, "chatwoot_conversation_pending": false }'
curl -X POST http://127.0.0.1:8081/settings/set/Whatsapp \ -H "apikey: B6D711FCDE4D4FD5936544120E713976" \ -H "Content-Type: application/json" \ -d '{ "reject_call": false, "msg_call": "", "groups_ignore": true, "always_online": true, "read_messages": false, "read_status": false }'
curl -X DELETE http://127.0.0.1:8081/instance/logout/Whatsapp \ -H "apikey: B6D711FCDE4D4FD5936544120E713976" \ -H "Content-Type: application/json"
curl -X DELETE http://127.0.0.1:8081/instance/delete/Whatsapp \ -H "apikey: B6D711FCDE4D4FD5936544120E713976" \ -H "Content-Type: application/json"
curl -X GET http://127.0.0.1:8081/instance/fetchInstances \ -H "apikey: B6D711FCDE4D4FD5936544120E713976" \ -H "Content-Type: application/json"
curl -X GET http://127.0.0.1:8081/instance/restart/Whatsapp \ -H "apikey: B6D711FCDE4D4FD5936544120E713976" \ -H "Content-Type: application/json"
apt install vsftpd
cd /etc cp vsftpd.conf vsftpd.conf.bak
listen=YES listen_ipv6=NO connect_from_port_20=YES anonymous_enable=NO local_enable=YES write_enable=YES chroot_local_user=YES allow_writeable_chroot=YES secure_chroot_dir=/var/run/vsftpd/empty pam_service_name=vsftpd pasv_enable=YES pasv_min_port=40000 pasv_max_port=45000 userlist_enable=YES userlist_file=/etc/vsftpd.userlist userlist_deny=NO ~
vim /etc/vsftpd.chroot_list SeuUsuario
adduser SeuUsuario
Passo 6 – Habilitar e Ativar vsftp server
systemctl enable vsftpd systemctl start vsftpd
Nesse breve tutorial iremos ver como configurar o recurso CSAT do Chatwoot.
Necessário ja ter o N8N instalado e funcional.
Editar os seguintes arquivos
vim /etc/postgresql/12/main/pg_hba.conf host all all 0.0.0.0/0 md5 vim /etc/postgresql/12/main/postgresql.conf listen_addresses = '*'
Url para download
https://github.com/delcain/csat-chatwoot
Após importar o script
# Host Usar IP Público do Servidor 38.xxx.xxx.138 # Database chatwoot_production #User postgres #Password !@aSDFSA231@!
Obs. Pegar senha no arquivo .env ou docker-compose.yml
Specify Headers
Obs: em todos os nodes configurar Continue on Fail
3º Passso – Dentro do Chatwoot
https://docs.n8n.io/hosting/installation/server-setups/docker-compose/#5-create-docker-compose-file
cd /root mkdir n8n vim docker-compose.yml
Siga os seguintes passos
Criar diretórios
sudo mkdir -p /docker/graylog/mongo/data; sudo mkdir -p /docker/graylog/elasticsearch/data; sudo mkdir -p /docker/graylog/data; sudo chmod -R 777 /docker/graylog;
Criar instância Mongo
docker run --name mongo --restart=always \ -v /docker/graylog/mongo/data:/data/db -d mongo:5.0.13;
Criar instância Elastic Search
docker run -d --name elasticsearch \ --restart=always \ -e "http.host=0.0.0.0" \ -e "discovery.type=single-node" \ -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" \ -v /docker/graylog/elasticsearch/data:/usr/share/elasticsearch/data \ docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2;
Criar instância Graylog
docker run -d --name graylog \ --hostname graylog-server \ --restart=always \ --link mongo \ --link elasticsearch \ -v /docker/graylog/data:/usr/share/graylog/data/journal \ -p 9000:9000 -p 12201:12201 -p 5140:5140 -p 5140:5140/udp \ -e GRAYLOG_HTTP_EXTERNAL_URI="http://log.MEUDNS.com.br:9000/" \ graylog/graylog:4.0;
Para parar os serviços use:
docker stop graylog docker stop elasticsearch docker stop mongo
Para iniciar os serviços use:
docker start graylog docker start elasticsearch docker start mongo
Se preferir
docker stop graylog && docker stop elasticsearch && docker stop mongo docker start graylog && docker start elasticsearch && docker start mongo
Para visualizar os logs.
docker logs graylog docker logs elasticsearch docker logs mongo
Logue no pinel como admin:
usr: admin pwd: admin
Para alterar a senha do admin siga os respectivos passos
Você DEVE definir um segredo para proteger/salvar as senhas de usuário armazenadas Use pelo menos 64 caracteres.
Gere uma senha usando pwgen. Por exemplo:
pwgen -N 1 -s 96
ATENÇÃO: Este valor deve ser o mesmo em todos os nós Graylog do cluster.
A alteração desse valor após a instalação tornará todas as sessões de usuário e valores criptografados no banco de dados inválidos. (por exemplo, tokens de acesso criptografados)
GRAYLOG_PASSWORD_SECRET="x6dn4BjyLN37qZh0R2b0FckMzOrORLUivljy7a3PMqRItwtZ6SJdu2PxMbn6U6qJrMXKoh7mqOZ0jtHKTUv2UcaOLwoDbKpX"
Você DEVE especificar uma senha hash para o usuário root (que você só precisa configurar inicialmente o sistema e caso você perca a conectividade com seu back-end de autenticação)
Esta senha não pode ser alterada usando a API ou por meio da interface da web. Se precisar alterá-lo, modifique-o neste arquivo.
Crie uma senha usando shasum. Por exemplo:
echo -n SenhaSuperSecreta!@# | shasum -a 256
GRAYLOG_ROOT_PASSWORD_SHA2="8c586a074ed73366348cecd0dc6574b53d7515e313bafc4fa95191887cfd3989"
Sua configuração deverá ficar assim com ajuste de usuário admin e timezone
docker run -d --name graylog \ --hostname graylog-server \ --restart=always \ --link mongo \ --link elasticsearch \ -v /docker/graylog/data:/usr/share/graylog/data/journal \ -p 9000:9000 -p 12201:12201 -p 5140:5140 -p 5140:5140/udp \ -e GRAYLOG_HTTP_EXTERNAL_URI="http://log.cuidadodigital.com.br:9000/" \ -e GRAYLOG_PASSWORD_SECRET="x6dn4BjyLN37qZh0R2b0FckMzOrORLUivljy7a3PMqRItwtZ6SJdu2PxMbn6U6qJrMXKoh7mqOZ0jtHKTUv2UcaOLwoDbKpX" \ -e GRAYLOG_ROOT_PASSWORD_SHA2="8c586a074ed73366348cecd0dc6574b53d7515e313bafc4fa95191887cfd3989" \ -e GRAYLOG_TZ="America/Sao_Paulo" \ -e GRAYLOG_TIMEZONE="America/Sao_Paulo" \ -e GRAYLOG_ROOT_TIMEZONE="America/Sao_Paulo" \ graylog/graylog:4.0;
Arquivo de configurção para enviar arquvios deletados do servidor windows para o GrayLog
Acesse https://nxlog.co/downloads/nxlog-ce#nxlog-community-edition para baixar a aplicação para Windows
Instale o Nxlog em C:\nxlog
Edite o arquivo c:\nxlog\conf\nxlog.conf
Copie e cole essa diretiva.
Maiores inforamções em:
https://docs.nxlog.co/userguide/integrate/windows-eventlog.html
Panic Soft #NoFreeOnExit TRUE define ROOT C:\nxlog define CERTDIR %ROOT%\cert define CONFDIR %ROOT%\conf\nxlog.d define LOGDIR %ROOT%\data include %CONFDIR%\\*.conf define LOGFILE %LOGDIR%\nxlog.log LogFile %LOGFILE% Moduledir %ROOT%\modules CacheDir %ROOT%\data Pidfile %ROOT%\data\nxlog.pid SpoolDir %ROOT%\data <Extension _syslog> Module xm_syslog </Extension> <Extension _charconv> Module xm_charconv AutodetectCharsets iso8859-2, utf-8, utf-16, utf-32 </Extension> <Extension _exec> Module xm_exec </Extension> <Extension _fileop> Module xm_fileop # Check the size of our log file hourly, rotate if larger than 5MB <Schedule> Every 1 hour Exec if (file_exists('%LOGFILE%') and \ (file_size('%LOGFILE%') >= 5M)) \ file_cycle('%LOGFILE%', 8); </Schedule> # Rotate our log file every week on Sunday at midnight <Schedule> When @weekly Exec if file_exists('%LOGFILE%') file_cycle('%LOGFILE%', 8); </Schedule> </Extension> <Extension _gelf> Module xm_gelf </Extension> # <Input in> # Module im_msvistalog # </Input> <Input security_events> Module im_msvistalog <QueryXML> <QueryList> <Query Id="0"> <Select Path="Security"> *[System[(Level=0) and (EventID=5145)]] and *[EventData[Data[@Name='AccessMask']and(Data='0x110080')]] </Select> </Query> </QueryList> </QueryXML> </Input> <Output out> Module om_udp Host log.cuidadodigital.com.br Port 12201 Exec to_syslog_snare(); OutputType GELF_UDP </Output> <Route 1> # Path in => security_events => out Path security_events => out </Route>
Para instalar o Windows 11 sem necessáriamente ter que fazer login em um conta Microsoft, siga os seguintes passos.
Assim que inicar o Wizard de instalação APÓS a cópia dos arquivos precione no teclado SWIFT + F10, assim que aparecer o promtp de comando digite.
oobe\bypassnroe
Ao reiniciar o computador prossiga sem acesso a internet.