79 lines
2.3 KiB
Markdown
79 lines
2.3 KiB
Markdown
|
|
# Nginx Configuration Update - info.defi-oracle.io Commented Out
|
||
|
|
|
||
|
|
**Date**: 2026-01-05
|
||
|
|
**Action**: Commented out `info.defi-oracle.io` server block in Nginx
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Changes Made
|
||
|
|
|
||
|
|
### Configuration File
|
||
|
|
**File**: `/etc/nginx/sites-available/info-defi-oracle`
|
||
|
|
|
||
|
|
**Action**: Entire server block commented out
|
||
|
|
|
||
|
|
**Backup Created**: `/etc/nginx/sites-available/info-defi-oracle.backup.*`
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Verification
|
||
|
|
|
||
|
|
### ✅ Nginx Configuration
|
||
|
|
- Configuration syntax: ✅ Valid
|
||
|
|
- Nginx reloaded: ✅ Successfully
|
||
|
|
- Service status: ✅ Running
|
||
|
|
|
||
|
|
### ✅ Other Services Unaffected
|
||
|
|
- `rpc.public-0138.defi-oracle.io`: ✅ Still working
|
||
|
|
- RPC Translator service: ✅ Still working
|
||
|
|
|
||
|
|
### ⚠️ info.defi-oracle.io Status
|
||
|
|
- Local access: Returns "Not Found" (expected - no server block active)
|
||
|
|
- Public HTTPS: No longer routed by Nginx
|
||
|
|
- Cloudflare tunnel: Still configured, but Nginx won't serve the content
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Current Nginx Active Configurations
|
||
|
|
|
||
|
|
| Domain | Status | Purpose |
|
||
|
|
|--------|--------|---------|
|
||
|
|
| `rpc.public-0138.defi-oracle.io` | ✅ Active | RPC Translator service |
|
||
|
|
| `info.defi-oracle.io` | ❌ Commented Out | Info page (disabled) |
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## To Re-enable
|
||
|
|
|
||
|
|
If you need to re-enable the info.defi-oracle.io configuration:
|
||
|
|
|
||
|
|
1. **Uncomment the configuration**:
|
||
|
|
```bash
|
||
|
|
ssh root@192.168.11.10 "pct exec 2400 -- sed -i 's/^#\(server {\)/\1/g' /etc/nginx/sites-available/info-defi-oracle"
|
||
|
|
ssh root@192.168.11.10 "pct exec 2400 -- sed -i 's/^#\( listen\)/\1/g' /etc/nginx/sites-available/info-defi-oracle"
|
||
|
|
# ... (uncomment all lines)
|
||
|
|
```
|
||
|
|
|
||
|
|
2. **Or restore from backup**:
|
||
|
|
```bash
|
||
|
|
ssh root@192.168.11.10 "pct exec 2400 -- cp /etc/nginx/sites-available/info-defi-oracle.backup.* /etc/nginx/sites-available/info-defi-oracle"
|
||
|
|
```
|
||
|
|
|
||
|
|
3. **Test and reload**:
|
||
|
|
```bash
|
||
|
|
ssh root@192.168.11.10 "pct exec 2400 -- nginx -t && systemctl reload nginx"
|
||
|
|
```
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
## Impact
|
||
|
|
|
||
|
|
- ✅ **No impact on RPC endpoints**: `rpc.public-0138.defi-oracle.io` continues to work
|
||
|
|
- ✅ **No impact on RPC Translator**: Service continues to operate normally
|
||
|
|
- ⚠️ **Info page disabled**: `info.defi-oracle.io` will not be served by Nginx
|
||
|
|
- ⚠️ **Cloudflare tunnel**: Still routes to Nginx, but Nginx won't match the hostname
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Status**: Configuration commented out successfully. Nginx is running normally.
|