전체 글 (73) 썸네일형 리스트형 마이크로서비스 - nginxstore 글 모음 1편 : 마이크로서비스 아키텍처(MSA) 패턴의 이해 https://nginxstore.com/blog/microservices/%EB%A7%88%EC%9D%B4%ED%81%AC%EB%A1%9C%EC%84%9C%EB%B9%84%EC%8A%A4-%EC%95%84%ED%82%A4%ED%85%8D%EC%B2%98msa-%ED%8C%A8%ED%84%B4%EC%9D%98-%EC%9D%B4%ED%95%B4/ 2편 : 마이크로서비스 구축을 위한 API Gateway 패턴 사용하기 https://nginxstore.com/blog/api-gateway/%EB%A7%88%EC%9D%B4%ED%81%AC%EB%A1%9C%EC%84%9C%EB%B9%84%EC%8A%A4-%EA%B5%AC%EC%B6%95%EC%9D%84-%E.. oracle 11g to oracle 19c 마이그레이션 문제 해결 1. 작업내용 - 오류메세지 : ORA-28040: No matching authentication protocol ojdbc8.jar 로 교체 - 오류 메세지 : 지원되지 않는 문자 집합(클래스 경로에 orai18n.jar 추가) orai18n.jar 추가 2. 작업후 정상 확인 ORACLE 11g 정상 접근 확인 : 정상 ORACLE 19c 정상 접근 확인 : 정상 3. 상세 AS-IS ojdbc14.jar : jre version 1.4 용 jre.1.8 TO-BE ojdbc8.jar : Implements JDBC 4.2 spec and certified with JDK8 and JDK11 jre.1.8 : 유지 orai18n.jar 추가 4. 참조 - Oracle Database 19c (19... [c#] Globel Exception Deligation Handler // 참조 // https://stackoverflow.com/questions/13013973/asp-net-web-api-default-error-messages // DelegatingHandler : 내부 핸들러라고 하는 다른 핸들러에 HTTP 응답 메시지 처리를 위임하는 HTTP 핸들러의 유형입니다. // https://learn.microsoft.com/ko-kr/dotnet/api/system.net.http.delegatinghandler?view=netframework-4.8 // http://www.egocube.pe.kr/Translation/Content/asp-net-web-api/201309040001 public class GlobalExceptionDeligatingHandl.. 9. next.js 쿠키 사용 1. Server Side 에서 API로 쿠키 보내기 const strUrl = process.env.NEXT_PUBLIC_URL_API + "/todolist"; const res = await axios.get(strUrl, { headers: context.req ? { cookie: context?.req?.headers?.cookie } : undefined }) 2. Client Side 에서 API로 쿠키 보내기 const strUrl = process.env.NEXT_PUBLIC_URL_API + "/todolist"; const res = await axios.get(strUrl, { withCredentials: true }) 3. 서버측 CORS 확인 - ASP.NET WEBAPI -.. 8. next.js 개발환경에서 인증서 없이 HTTPS 사용하기 - 프록시 설정 - 개발자 PC에서 실행 local-ssl-proxy 설치 : 별도의 CMD에서 실행 $ npm install -g local-ssl-proxy $ local-ssl-proxy --source 3001 --target 3000 => 자동 실행 할수 있도록 확인 필요 https://www.npmjs.com/package/local-ssl-proxy - next.js 설정 동일하게 실행후 접근 확인 http://client.test.com:3000 https://client.test.com:3001 인증되지 않은 인증서이지만 한번 확인하면 사용 가능 7. next js : dotnet에서 EUC-KR 로 HttpUtility.UrlDecode 된 2차원 배열 쿠키 사용 yarn add decode-uri-component-charset https://github.com/gtgalone/decode-uri-component-charset#readme import cookies from 'next-cookies'; import { decodeURIComponentCharset } from 'decode-uri-component-charset'; .... export function Get(context: any) : IAuthManager { let authMgr : IAuthManager = init(); let allCookie = cookies(context); if(!(typeof allCookie === 'undefined' || allCookie=== null).. 6. next js 사용자 별 페이지 접근 제어 - HOC - 참조 https://github.com/vercel/next.js/discussions/10925#discussioncomment-12471 - /hoc/withAuthServerSide.tsx import { Toast } from "antd-mobile"; import { checkPrime } from "crypto"; import { useRouter } from "next/router"; import React from "react"; import * as AuthManager from '../components/manager/AuthManager' export interface AccesResultModel { canAccess :boolean; retUrl : string; message.. 5. next js 서버 배포 및 실행 - IIS ( Windows Server 2008 R2, IIS7 기준) - 참조 deploy next js on iis web server https://www.youtube.com/watch?v=HLsx0iraA-Y0. node 설치 windows server 2008 R2 에서 최신 버전 설치 불가 16.x, 14.x 설치불가 12.x 로 설치 : node-v12.22.7-x64.msi https://nodejs.org/download/release/latest-v12.x/ 1. IISNODE 설치 https://github.com/tjanczuk/iisnode 2. URL rewrite module for IIS https://www.iis.net/downloads/microsoft/url-rewrite 3. 서버폴더에 배포 [C:\.. 이전 1 2 3 4 5 ··· 10 다음