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