Files
eSIM-Tools/scripts/start_simyo_server.sh
Abner c5fbc34d0a 🏗️ Major project restructure and CSP fix
🔧 Fixed CSP Issue:
- Root cause: Netlify CSP configuration overriding HTML meta CSP
- Added missing domains: id.giffgaff.com, publicapi.giffgaff.com
- Updated netlify.toml CSP configuration
- This resolves the OAuth token exchange CSP violation

📁 Project Architecture Restructure:
- src/: Source code organized by provider (giffgaff/, simyo/)
- docs/: Documentation categorized (fixes/, guides/, reference/)
- tests/: All test files centralized
- scripts/: Deployment and utility scripts
- postman/: API collections and reference files

🔄 Path Updates:
- Updated netlify.toml redirects for new file locations
- Updated README.md with new project structure
- Updated all internal documentation links
- Maintained backward compatibility for all URLs

📋 Files Moved:
- giffgaff_complete_esim.html → src/giffgaff/
- simyo_complete_esim.html → src/simyo/
- simyo_static.html → src/simyo/
- simyo_proxy_server.js → src/simyo/
- All docs → docs/{fixes,guides,reference}/
- All tests → tests/
- All scripts → scripts/
- Postman collections → postman/

 Benefits:
- Improved maintainability and organization
- Better separation of concerns
- Enhanced developer experience
- Cleaner project structure following best practices
- Zero impact on user experience (all URLs preserved)

This major restructure sets foundation for better scalability and maintenance.
2025-08-01 19:28:03 +08:00

46 lines
1.1 KiB
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Simyo eSIM 代理服务器启动脚本
echo "🚀 启动 Simyo eSIM 代理服务器..."
# 检查Node.js是否安装
if ! command -v node &> /dev/null; then
echo "❌ 错误: 未检测到 Node.js请先安装 Node.js (版本 >= 14.0.0)"
echo " 下载地址: https://nodejs.org/"
exit 1
fi
# 显示Node.js版本
echo "✅ Node.js 版本: $(node --version)"
# 检查package.json是否存在
if [ ! -f "package.json" ]; then
echo "❌ 错误: 未找到 package.json 文件"
echo " 请确保在正确的目录中运行此脚本"
exit 1
fi
# 检查依赖是否已安装
if [ ! -d "node_modules" ]; then
echo "📦 安装依赖包..."
npm install
if [ $? -ne 0 ]; then
echo "❌ 依赖安装失败请检查网络连接或npm配置"
exit 1
fi
echo "✅ 依赖安装完成"
else
echo "✅ 依赖包已存在"
fi
# 启动服务器
echo "🌟 启动代理服务器..."
echo "📍 服务器将在 http://localhost:3000 启动"
echo "💡 按 Ctrl+C 停止服务器"
echo ""
# 启动服务器
node simyo_proxy_server.js