Files
smom-dbis-138/terraform/phases/phase1/scripts/fix-nginx-simple.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

44 lines
942 B
Bash
Executable File

#!/bin/bash
# Simple Nginx Fix Script
# Fixes nginx.conf syntax error
cat > /tmp/nginx.conf.fix <<'EOF'
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name _;
location /health {
return 200 "healthy\n";
add_header Content-Type text/plain;
}
location / {
return 200 "Nginx Proxy - Phase 1\n";
add_header Content-Type text/plain;
}
}
}
EOF
sudo cp /tmp/nginx.conf.fix /etc/nginx/nginx.conf
sudo nginx -t && sudo systemctl start nginx && sudo systemctl enable nginx && echo "Nginx fixed!" || echo "Nginx fix failed"