275 lines
6.9 KiB
Markdown
275 lines
6.9 KiB
Markdown
# 🔐 CREDENCIAIS DO SERVIDOR - CNXIFLY.COM
|
|
|
|
> **⚠️ DOCUMENTO CONFIDENCIAL - NÃO COMPARTILHAR**
|
|
>
|
|
> Última atualização: 17 de Dezembro de 2025
|
|
|
|
---
|
|
|
|
## 📡 ACESSO SSH
|
|
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Host** | \`213.165.93.60\` |
|
|
| **Usuário** | \`root\` |
|
|
| **Senha** | \`Master9354\` |
|
|
| **Porta** | \`22\` |
|
|
|
|
\`\`\`bash
|
|
sshpass -p 'Master9354' ssh -o StrictHostKeyChecking=no root@213.165.93.60
|
|
\`\`\`
|
|
|
|
---
|
|
|
|
## 🌐 URLs E CREDENCIAIS
|
|
|
|
### Sites Públicos (sem autenticação)
|
|
|
|
| URL | Descrição |
|
|
|-----|-----------|
|
|
| https://cnxifly.com | Site principal (Frontend) |
|
|
| https://www.cnxifly.com | Site principal (www) |
|
|
| https://webmoney.cnxifly.com | WEBMoney App |
|
|
|
|
### Painéis de Administração
|
|
|
|
| URL | Descrição | Usuário | Senha |
|
|
|-----|-----------|---------|-------|
|
|
| https://phpmyadmin.cnxifly.com | phpMyAdmin (Banco de Dados) | \`root\` | \`M@ster9354\` |
|
|
| https://mail.cnxifly.com | PostfixAdmin (Admin Email) | \`admin@cnxifly.com\` | \`M@ster9354\` |
|
|
| https://webmail.cnxifly.com | Roundcube (Webmail) | \`marco@cnxifly.com\` | \`M@ster9354\` |
|
|
|
|
### WEBMoney App (Login Sistema)
|
|
|
|
| URL | Usuário | Senha | Descrição |
|
|
|-----|---------|-------|-----------|
|
|
| https://webmoney.cnxifly.com | \`marco@cnxifly.com\` | \`M@ster9354\` | Administrador |
|
|
|
|
---
|
|
|
|
## 🗄️ BANCO DE DADOS (MariaDB 11.4.9)
|
|
|
|
### Acesso Root
|
|
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Host** | \`localhost\` ou \`127.0.0.1\` |
|
|
| **Porta** | \`3306\` |
|
|
| **Usuário** | \`root\` |
|
|
| **Senha** | \`M@ster9354\` |
|
|
|
|
\`\`\`bash
|
|
mysql -u root -p'M@ster9354'
|
|
# ou via SSH:
|
|
sshpass -p 'Master9354' ssh root@213.165.93.60 "mysql -u webmoney -p'M@ster9354' webmoney -e 'QUERY'"
|
|
\`\`\`
|
|
|
|
### Databases e Usuários
|
|
|
|
| Database | Usuário | Senha | Descrição |
|
|
|----------|---------|-------|-----------|
|
|
| \`webmoney\` | \`webmoney\` | \`M@ster9354\` | Aplicação principal |
|
|
| \`postfixadmin\` | \`postfixadmin\` | \`M@ster9354\` | Gerenciamento de emails |
|
|
| \`roundcube\` | \`roundcube\` | \`M@ster9354\` | Webmail |
|
|
| \`phpmyadmin\` | \`phpmyadmin\` | \`M@ster9354\` | Controle phpMyAdmin |
|
|
|
|
---
|
|
|
|
## 📧 SERVIDOR DE EMAIL
|
|
|
|
### Versões dos Serviços de Email
|
|
|
|
| Serviço | Versão |
|
|
|---------|--------|
|
|
| Postfix | 3.8.6 |
|
|
| Dovecot | 2.3.21 |
|
|
| OpenDKIM | 2.11.0 |
|
|
|
|
### Configuração SMTP/IMAP
|
|
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Servidor** | \`mail.cnxifly.com\` |
|
|
| **SMTP Porta** | \`587\` (STARTTLS) |
|
|
| **SMTPS Porta** | \`465\` (SSL/TLS) |
|
|
| **IMAP Porta** | \`993\` (SSL/TLS) |
|
|
| **Autenticação** | Necessária |
|
|
|
|
### Contas de Email
|
|
|
|
| Email | Senha | Descrição |
|
|
|-------|-------|-----------|
|
|
| \`admin@cnxifly.com\` | \`M@ster9354\` | Administrador PostfixAdmin |
|
|
| \`marco@cnxifly.com\` | \`M@ster9354\` | Email pessoal Marco |
|
|
| \`no-reply@cnxifly.com\` | \`M@ster9354\` | Notificações do sistema |
|
|
|
|
### Configuração Cliente de Email
|
|
|
|
\`\`\`
|
|
Servidor de entrada (IMAP):
|
|
Host: mail.cnxifly.com
|
|
Porta: 993
|
|
Segurança: SSL/TLS
|
|
|
|
Servidor de saída (SMTP):
|
|
Host: mail.cnxifly.com
|
|
Porta: 587
|
|
Segurança: STARTTLS
|
|
\`\`\`
|
|
|
|
---
|
|
|
|
## 🛡️ CONFIGURAÇÕES ANTI-SPAM (DNS)
|
|
|
|
### Registros DNS para Entrega de Email
|
|
|
|
| Tipo | Nome | Valor | Status |
|
|
|------|------|-------|--------|
|
|
| **SPF** | \`cnxifly.com\` | \`v=spf1 mx a ip4:213.165.93.60 -all\` | ✅ OK |
|
|
| **DMARC** | \`_dmarc.cnxifly.com\` | \`v=DMARC1; p=quarantine; ...\` | ✅ OK |
|
|
| **DKIM** | \`default._domainkey.cnxifly.com\` | (chave RSA 2048-bit) | ✅ OK |
|
|
| **PTR/rDNS** | \`213.165.93.60\` | \`mail.cnxifly.com\` | ✅ OK |
|
|
|
|
### Verificação Anti-Spam
|
|
|
|
\`\`\`bash
|
|
# Testar SPF
|
|
dig +short TXT cnxifly.com | grep spf
|
|
|
|
# Testar DMARC
|
|
dig +short TXT _dmarc.cnxifly.com
|
|
|
|
# Testar DKIM
|
|
dig +short TXT default._domainkey.cnxifly.com
|
|
|
|
# Testar rDNS
|
|
dig +short -x 213.165.93.60
|
|
|
|
# Verificar assinatura DKIM
|
|
opendkim-testkey -d cnxifly.com -s default -vvv
|
|
\`\`\`
|
|
|
|
---
|
|
|
|
## 🔧 API ENDPOINTS
|
|
|
|
### Base URL
|
|
\`\`\`
|
|
https://webmoney.cnxifly.com/api
|
|
\`\`\`
|
|
|
|
### Endpoints Disponíveis
|
|
|
|
| Método | Endpoint | Descrição |
|
|
|--------|----------|-----------|
|
|
| \`POST\` | \`/api/login\` | Autenticação |
|
|
| \`POST\` | \`/api/register\` | Registro de usuário |
|
|
| \`POST\` | \`/api/logout\` | Logout |
|
|
| \`GET\` | \`/api/me\` | Dados do usuário autenticado |
|
|
| \`GET\` | \`/api/preferences\` | Preferências do usuário |
|
|
| \`PUT\` | \`/api/preferences\` | Atualizar preferências |
|
|
| \`POST\` | \`/api/preferences/test-notification\` | Testar notificação |
|
|
|
|
### Health Check
|
|
\`\`\`
|
|
GET https://cnxifly.com/up
|
|
\`\`\`
|
|
|
|
---
|
|
|
|
## 🛡️ CERTIFICADO SSL
|
|
|
|
| Campo | Valor |
|
|
|-------|-------|
|
|
| **Emissor** | Let's Encrypt |
|
|
| **Início** | 07 de Dezembro de 2025 |
|
|
| **Válido até** | 07 de Março de 2026 |
|
|
| **Domínios cobertos** | cnxifly.com, www, mail, webmail, phpmyadmin, webmoney |
|
|
| **Renovação** | Automática via Certbot |
|
|
|
|
---
|
|
|
|
## 📁 ESTRUTURA DE DIRETÓRIOS
|
|
|
|
\`\`\`
|
|
/var/www/webmoney/
|
|
├── backend/ # Laravel API (PHP 8.4)
|
|
│ └── storage/logs/ # Logs do Laravel
|
|
└── frontend/
|
|
└── dist/ # React build (Nginx root)
|
|
|
|
/var/www/postfixadmin/ # PostfixAdmin
|
|
/var/www/roundcube/ # Roundcube Webmail
|
|
/var/www/phpmyadmin/ # phpMyAdmin
|
|
\`\`\`
|
|
|
|
---
|
|
|
|
## 🔄 SERVIÇOS DO SISTEMA
|
|
|
|
### Versões
|
|
|
|
| Serviço | Versão |
|
|
|---------|--------|
|
|
| Nginx | 1.29.4 |
|
|
| PHP-FPM | 8.4.15 |
|
|
| MariaDB | 11.4.9 |
|
|
| Redis | 7.0.15 |
|
|
| Postfix | 3.8.6 |
|
|
| Dovecot | 2.3.21 |
|
|
| OpenDKIM | 2.11.0 |
|
|
|
|
### Comandos de Status
|
|
|
|
| Serviço | Comando |
|
|
|---------|---------|
|
|
| Nginx | \`systemctl status nginx\` |
|
|
| PHP-FPM | \`systemctl status php8.4-fpm\` |
|
|
| MariaDB | \`systemctl status mariadb\` |
|
|
| Redis | \`systemctl status redis-server\` |
|
|
| Postfix | \`systemctl status postfix\` |
|
|
| Dovecot | \`systemctl status dovecot\` |
|
|
| OpenDKIM | \`systemctl status opendkim\` |
|
|
|
|
### Reiniciar Todos os Serviços
|
|
\`\`\`bash
|
|
systemctl restart nginx php8.4-fpm mariadb redis-server postfix dovecot opendkim
|
|
\`\`\`
|
|
|
|
---
|
|
|
|
## ⏰ CRON JOBS
|
|
|
|
| Cron | Comando | Descrição |
|
|
|------|---------|-----------|
|
|
| \`* * * * *\` | \`cd /var/www/webmoney/backend && php artisan schedule:run\` | Laravel Scheduler |
|
|
|
|
---
|
|
|
|
## 📝 NOTAS IMPORTANTES
|
|
|
|
1. **Backup**: Realizar backup regular do banco de dados e arquivos
|
|
2. **SSL**: Certificado renova automaticamente via Certbot
|
|
3. **Firewall**: UFW ativo com portas 22, 25, 80, 143, 443, 465, 587, 993
|
|
4. **DKIM**: ⚠️ Chave existe no servidor mas falta registro DNS
|
|
5. **Logs**:
|
|
- Nginx: \`/var/log/nginx/\`
|
|
- PHP: \`/var/log/php8.4-fpm.log\`
|
|
- Mail: \`/var/log/mail.log\`
|
|
- Laravel: \`/var/www/webmoney/backend/storage/logs/\`
|
|
|
|
---
|
|
|
|
## 🆘 SUPORTE
|
|
|
|
Em caso de problemas, verificar:
|
|
1. Status dos serviços: \`systemctl status [serviço]\`
|
|
2. Logs de erro: \`tail -f /var/log/nginx/error.log\`
|
|
3. Logs Laravel: \`tail -f /var/www/webmoney/backend/storage/logs/laravel.log\`
|
|
4. Logs de email: \`tail -f /var/log/mail.log\`
|
|
5. Conectividade: \`curl -I https://cnxifly.com\`
|
|
|
|
---
|
|
|
|
> **Gerado automaticamente em 17/12/2025**
|