206 lines
5.0 KiB
Markdown
206 lines
5.0 KiB
Markdown
|
|
# NPMplus Proxy Host Configuration Complete
|
||
|
|
|
||
|
|
## Date: 2025-01-22
|
||
|
|
|
||
|
|
## ✅ Configuration Status
|
||
|
|
|
||
|
|
### Proxy Host Created Successfully
|
||
|
|
|
||
|
|
- **Proxy Host ID**: 22
|
||
|
|
- **Domain**: `cross-all.defi-oracle.io`
|
||
|
|
- **Forward To**: `http://192.168.11.211:80`
|
||
|
|
- **Forward Scheme**: `http`
|
||
|
|
- **Forward Port**: `80`
|
||
|
|
- **Status**: ✅ Configured and Active
|
||
|
|
|
||
|
|
### Enabled Features
|
||
|
|
|
||
|
|
- ✅ **Cache Assets**: Enabled
|
||
|
|
- ✅ **Block Common Exploits**: Enabled
|
||
|
|
- ✅ **Websockets Support**: Enabled
|
||
|
|
- ✅ **Force SSL**: Enabled (pending certificate)
|
||
|
|
- ✅ **HTTP/2 Support**: Enabled (pending certificate)
|
||
|
|
- ✅ **HSTS**: Enabled (pending certificate)
|
||
|
|
|
||
|
|
### SSL Certificate
|
||
|
|
|
||
|
|
- **Status**: ⏳ Requested (Let's Encrypt)
|
||
|
|
- **Email**: `nsatoshi2007@hotmail.com`
|
||
|
|
- **Certificate ID**: New (pending issuance)
|
||
|
|
- **Estimated Time**: 1-2 minutes
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📋 Configuration Details
|
||
|
|
|
||
|
|
### NPMplus Access
|
||
|
|
|
||
|
|
- **Dashboard**: `https://192.168.11.166:81`
|
||
|
|
- **User**: `nsatoshi2007@hotmail.com`
|
||
|
|
- **Container**: npmplus (VMID 10233 on 192.168.11.11)
|
||
|
|
|
||
|
|
### Backend Server
|
||
|
|
|
||
|
|
- **VM**: 192.168.11.211 (VMID 2101 on 192.168.11.10)
|
||
|
|
- **Nginx**: ✅ Running
|
||
|
|
- **Local Status**: ✅ HTTP 200 OK
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ⚠️ Network Connectivity Note
|
||
|
|
|
||
|
|
**Current Status**:
|
||
|
|
- Proxy host is configured correctly in NPMplus
|
||
|
|
- Backend server is running and accessible locally
|
||
|
|
- Network connectivity between NPMplus container and backend VM needs verification
|
||
|
|
|
||
|
|
**If experiencing 502 errors**:
|
||
|
|
1. Verify network routing between 192.168.11.11 (NPMplus host) and 192.168.11.211 (backend)
|
||
|
|
2. Check firewall rules on both VMs
|
||
|
|
3. Ensure Docker container network configuration allows access to 192.168.11.0/24
|
||
|
|
4. Test direct connectivity: `ping 192.168.11.211` from NPMplus container
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 🔒 SSL Certificate Status
|
||
|
|
|
||
|
|
### Verification Steps
|
||
|
|
|
||
|
|
1. **Check Certificate Status**:
|
||
|
|
```bash
|
||
|
|
ssh root@192.168.11.11 "pct exec 10233 -- docker logs npmplus | grep -i 'cross-all\|letsencrypt\|certificate' | tail -20"
|
||
|
|
```
|
||
|
|
|
||
|
|
2. **Check Nginx Config**:
|
||
|
|
```bash
|
||
|
|
ssh root@192.168.11.11 "pct exec 10233 -- docker exec npmplus nginx -T | grep -A 15 'cross-all.defi-oracle.io' | grep -E 'ssl_certificate|listen.*443'"
|
||
|
|
```
|
||
|
|
|
||
|
|
3. **Test HTTPS Access**:
|
||
|
|
```bash
|
||
|
|
curl -I https://cross-all.defi-oracle.io/
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📋 Next Steps
|
||
|
|
|
||
|
|
### 1. Verify DNS Configuration
|
||
|
|
|
||
|
|
Ensure DNS A record exists:
|
||
|
|
```
|
||
|
|
Type: A
|
||
|
|
Name: cross-all
|
||
|
|
Domain: defi-oracle.io
|
||
|
|
Value: [NPMplus Server Public IP]
|
||
|
|
TTL: 300
|
||
|
|
```
|
||
|
|
|
||
|
|
Verify DNS:
|
||
|
|
```bash
|
||
|
|
dig cross-all.defi-oracle.io +short
|
||
|
|
nslookup cross-all.defi-oracle.io
|
||
|
|
```
|
||
|
|
|
||
|
|
### 2. Wait for SSL Certificate
|
||
|
|
|
||
|
|
- Certificate issuance typically takes 1-2 minutes
|
||
|
|
- Check NPMplus dashboard for certificate status
|
||
|
|
- Verify certificate appears in nginx configuration
|
||
|
|
|
||
|
|
### 3. Test Production Access
|
||
|
|
|
||
|
|
**HTTP** (should redirect to HTTPS if Force SSL enabled):
|
||
|
|
```bash
|
||
|
|
curl -I http://cross-all.defi-oracle.io/
|
||
|
|
```
|
||
|
|
|
||
|
|
**HTTPS**:
|
||
|
|
```bash
|
||
|
|
curl -I https://cross-all.defi-oracle.io/
|
||
|
|
```
|
||
|
|
|
||
|
|
**Admin Panel**:
|
||
|
|
```bash
|
||
|
|
curl -I https://cross-all.defi-oracle.io/admin
|
||
|
|
```
|
||
|
|
|
||
|
|
**Browser Test**:
|
||
|
|
- Navigate to: `https://cross-all.defi-oracle.io/`
|
||
|
|
- Verify SSL certificate (green lock icon)
|
||
|
|
- Test wallet connection
|
||
|
|
- Test admin panel
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 🔧 Troubleshooting
|
||
|
|
|
||
|
|
### 502 Bad Gateway
|
||
|
|
|
||
|
|
**Possible Causes**:
|
||
|
|
1. Backend server not accessible from NPMplus container
|
||
|
|
2. Network routing/firewall issues
|
||
|
|
3. Backend nginx not running
|
||
|
|
|
||
|
|
**Resolution**:
|
||
|
|
1. Verify backend is running: `ssh root@192.168.11.10 "pct exec 2101 -- systemctl status nginx"`
|
||
|
|
2. Test connectivity: `ssh root@192.168.11.11 "pct exec 10233 -- docker exec npmplus curl http://192.168.11.211/"`
|
||
|
|
3. Check firewall rules on both VMs
|
||
|
|
4. Verify Docker network configuration
|
||
|
|
|
||
|
|
### SSL Certificate Not Issued
|
||
|
|
|
||
|
|
**Possible Causes**:
|
||
|
|
1. DNS not configured or not propagated
|
||
|
|
2. Port 80 not accessible from internet (for Let's Encrypt validation)
|
||
|
|
3. Rate limiting
|
||
|
|
|
||
|
|
**Resolution**:
|
||
|
|
1. Verify DNS: `dig cross-all.defi-oracle.io`
|
||
|
|
2. Check NPMplus logs for Let's Encrypt errors
|
||
|
|
3. Wait and retry (rate limits apply)
|
||
|
|
4. Manually request certificate in NPMplus dashboard
|
||
|
|
|
||
|
|
### Domain Not Accessible
|
||
|
|
|
||
|
|
**Possible Causes**:
|
||
|
|
1. DNS not configured
|
||
|
|
2. DNS not propagated
|
||
|
|
3. NPMplus not accessible from internet
|
||
|
|
|
||
|
|
**Resolution**:
|
||
|
|
1. Verify DNS configuration
|
||
|
|
2. Wait for DNS propagation (up to 48 hours)
|
||
|
|
3. Test direct IP access: `http://[NPMplus-IP]:80` (with Host header)
|
||
|
|
4. Check firewall/NAT rules
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## ✅ Configuration Verification Checklist
|
||
|
|
|
||
|
|
- [x] NPMplus container running
|
||
|
|
- [x] Proxy host created (ID: 22)
|
||
|
|
- [x] Domain configured: `cross-all.defi-oracle.io`
|
||
|
|
- [x] Forward configuration: `http://192.168.11.211:80`
|
||
|
|
- [x] SSL certificate requested
|
||
|
|
- [ ] SSL certificate issued (waiting)
|
||
|
|
- [ ] DNS A record configured
|
||
|
|
- [ ] DNS propagated
|
||
|
|
- [ ] HTTP accessible
|
||
|
|
- [ ] HTTPS accessible
|
||
|
|
- [ ] SSL certificate valid
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## 📚 Related Documentation
|
||
|
|
|
||
|
|
- `NPMPLUS_STATUS.md` - Status check report
|
||
|
|
- `NPMPLUS_CONFIGURATION.md` - Configuration guide
|
||
|
|
- `DEPLOYMENT_COMPLETE.md` - Deployment status
|
||
|
|
- `NEXT_STEPS_COMPLETE.md` - Next steps summary
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Last Updated**: 2025-01-22
|
||
|
|
**Status**: ✅ Proxy host configured, SSL certificate pending
|