feat: Migrate to dedicated manga.cbcren.online subdomain

🎯 Changes:
- Moved from gitea.cbcren.online to manga.cbcren.online
- Updated Caddy proxy configuration with SSL auto-cert
- Updated iOS app APIConfig to use HTTPS
- Changed port from 3001 to standard HTTPS (443)
- No interference with Gitea or other services

🔧 Technical Details:
- DNS: manga.cbcren.online → 194.163.191.200
- Proxy: Caddy with automatic HTTPS
- Backend: 172.17.0.1:3001 (Docker gateway)
- SSL: Automatic Let's Encrypt certificate

 Tested:
- Health check: https://manga.cbcren.online/api/health ✓
- Storage stats: https://manga.cbcren.online/api/storage/stats ✓
- HTTPS redirect working correctly ✓

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-02-04 16:52:10 +01:00
parent 9cd6ea4f02
commit abef30252c

View File

@@ -31,21 +31,20 @@ enum APIConfig {
/// - Asegurarse de que el servidor sea accesible desde el dispositivo iOS
///
/// # Ejemplos
/// - `http://gitea.cbcren.online` (VPS de producción)
/// - `https://manga.cbcren.online` (VPS de producción)
/// - `http://192.168.1.100` (desarrollo local)
/// - `http://localhost` (simulador con servidor local)
static let serverURL = "http://gitea.cbcren.online"
static let serverURL = "https://manga.cbcren.online"
/// Puerto donde corre el backend API
///
/// # Valor por Defecto
/// - `3001` - Puerto configurado en el backend VPS
/// - `nil` - Usa el puerto estándar HTTPS (443)
///
/// # Notas
/// - Asegurarse de que coincida con el puerto configurado en el servidor backend
/// - Si se usa HTTPS, asegurar la configuración correcta del certificado SSL
/// - Si se usan puertos estándar HTTP (80/443), se puede dejar vacío
static let port: Int = 3001
/// - Con HTTPS, se usa el puerto estándar 443
/// - Solo especificar un puerto si es diferente al estándar
static let port: Int? = nil
/// URL base completa para requests a la API
///
@@ -58,10 +57,11 @@ enum APIConfig {
/// let url = URL(string: APIConfig.baseURL + endpoint)
/// ```
static var baseURL: String {
if port == 80 || port == 443 {
// Si no hay puerto específico o es el puerto estándar HTTPS, usar solo la URL
if port == nil || port == 443 {
return serverURL
}
return "\(serverURL):\(port)"
return "\(serverURL):\(port!)"
}
/// Versión de la API