diff --git a/backend/cmd/server/main.go b/backend/cmd/server/main.go index 909abe8b..00e41c9e 100644 --- a/backend/cmd/server/main.go +++ b/backend/cmd/server/main.go @@ -55,7 +55,7 @@ func main() { "db_port", getEnv("DB_PORT", "5532"), "backend_port", getEnv("BACKEND_PORT", "3000"), "frontend_port", getEnv("FRONTEND_PORT", "5000"), - "frontend_url", getEnv("FRONTEND_URL", "http://ssologin.hmac.kr"), + "frontend_url", getEnv("FRONTEND_URL", "http://sso.hmac.kr"), "redis_addr", getEnv("REDIS_ADDR", "redis:6379"), ) diff --git a/backend/internal/handler/auth_handler.go b/backend/internal/handler/auth_handler.go index cdf5ba97..3942cb16 100644 --- a/backend/internal/handler/auth_handler.go +++ b/backend/internal/handler/auth_handler.go @@ -143,7 +143,7 @@ func (h *AuthHandler) InitEnchantedLink(c *fiber.Ctx) error { // Generate Link frontendURL := os.Getenv("FRONTEND_URL") if frontendURL == "" { - frontendURL = "http://ssologin.hmac.kr" + frontendURL = "http://sso.hmac.kr" } link := fmt.Sprintf("%s/verify/%s", frontendURL, token) @@ -343,7 +343,7 @@ func (h *AuthHandler) InitQRLogin(c *fiber.Ctx) error { // QR 코드 페이로드를 실제 접속 가능한 URL로 변경합니다. frontendURL := os.Getenv("FRONTEND_URL") if frontendURL == "" { - frontendURL = "https://ssologin.hmac.kr" + frontendURL = "https://sso.hmac.kr" } qrPayload := fmt.Sprintf("%s/approve?ref=%s", frontendURL, pendingRef) diff --git a/docker/docker-compose.template.yaml b/docker/docker-compose.template.yaml index 4a529658..84a1c596 100644 --- a/docker/docker-compose.template.yaml +++ b/docker/docker-compose.template.yaml @@ -16,6 +16,7 @@ services: - CLICKHOUSE_PORT=${CLICKHOUSE_PORT_NATIVE:-9000} - CLICKHOUSE_USER=${CLICKHOUSE_USER:-baron} - CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-password} + - FRONTEND_URL=${FRONTEND_URL:-https://sso.hmac.kr} ports: - "${BACKEND_PORT:-3010}:3010" depends_on: @@ -33,6 +34,9 @@ services: image: ${FRONTEND_IMAGE_NAME}:${IMAGE_TAG} container_name: baron_frontend restart: unless-stopped + environment: + - FRONTEND_URL=${FRONTEND_URL:-https://sso.hmac.kr} + - BACKEND_URL=${FRONTEND_URL:-https://sso.hmac.kr} ports: - "${FRONTEND_PORT:-80}:80" depends_on: diff --git a/frontend/lib/core/services/audit_service.dart b/frontend/lib/core/services/audit_service.dart index 02bb81a4..35480d79 100644 --- a/frontend/lib/core/services/audit_service.dart +++ b/frontend/lib/core/services/audit_service.dart @@ -3,7 +3,7 @@ import 'package:http/http.dart' as http; import 'package:flutter_dotenv/flutter_dotenv.dart'; class AuditService { - static String get _baseUrl => dotenv.env['BACKEND_URL'] ?? 'https://ssologin.hmac.kr'; + static String get _baseUrl => dotenv.env['BACKEND_URL'] ?? 'https://sso.hmac.kr'; static Future logEvent({ required String userId, diff --git a/frontend/lib/core/services/auth_proxy_service.dart b/frontend/lib/core/services/auth_proxy_service.dart index 85361e62..9f694b23 100644 --- a/frontend/lib/core/services/auth_proxy_service.dart +++ b/frontend/lib/core/services/auth_proxy_service.dart @@ -3,11 +3,11 @@ import 'package:http/http.dart' as http; import 'package:flutter_dotenv/flutter_dotenv.dart'; class AuthProxyService { - static String get _baseUrl => dotenv.env['BACKEND_URL'] ?? 'https://ssologin.hmac.kr'; + static String get _baseUrl => dotenv.env['BACKEND_URL'] ?? 'https://sso.hmac.kr'; static Future> initEnchantedLink(String loginId, {String? method}) async { final url = Uri.parse('$_baseUrl/api/v1/auth/enchanted-link/init'); - final frontendUrl = dotenv.env['FRONTEND_URL'] ?? 'http://ssologin.hmac.kr'; + final frontendUrl = dotenv.env['FRONTEND_URL'] ?? 'http://sso.hmac.kr'; final body = { 'loginId': loginId,