You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xit-ntri/REF/deploy/ntri/bin/setenv.bat

69 lines
3.5 KiB
Batchfile

@echo off
rem ===========================================================
rem Application 설정
rem [ 연계대상코드(NTRI_APP_LINKTRGTCD) 환경변수 설명 ]
rem 세외수입에서 부여한 시스템코드 조합 15자리.
rem -. Format: 연계기관코드(7)+연계시스템코드(3)+연계일련번호(5)
rem -. ex) 3990000PVM00001 //남양주(3990000)+주정차과태료시스템(PVM)+연계일련번호(00001)
rem ===========================================================
set NTRI_APP_HOME=%~dp0..
set NTRI_APP_BIN_DIR=%NTRI_APP_HOME%\bin
set NTRI_APP_DIR=%NTRI_APP_HOME%\webapp
set NTRI_APP=ntri-0.0.1-SNAPSHOT.jar
set NTRI_APP_PORT=18080
set NTRI_APP_LINKTRGTCD=
rem ===========================================================
rem SERVICE 등록정보
rem ===========================================================
set NTRI_SERVICE_NAME="Apache Tomcat - NTRI"
set NTRI_SERVICE_DESCRIPTION="XIT 세외수입 개별시스템 연계 API 입니다"
set NTRI_LOG_PATH=%NTRI_APP_HOME%/logs
rem ===========================================================
rem JDK 설정
rem ===========================================================
rem set NTRI_JAVA_HOME=%JAVA_HOME%
set NTRI_JAVA_HOME=C:\XIT\ntri\java\corretto-11.0.15
set NTRI_JAVA_BIN_DIR=%NTRI_JAVA_HOME%/bin
rem ===========================================================
rem SSL 설정
rem ===========================================================
set NTRI_SSL_ENABLED=true
rem set NTRI_SSL_KEY_AS="alias_name"
rem set NTRI_SSL_KEY_STORE=%NTRI_APP_HOME%/ssl/cert/certificate.p12
rem set NTRI_SSL_KEY_STORE_TYPE="PKCS12"
rem set NTRI_SSL_KEY_STORE_PASSWORD="xit5811807"
set NTRI_SSL_PRIVATE_KEY=%NTRI_APP_HOME%\ssl\cert\server.key
set NTRI_SSL_CERT=%NTRI_APP_HOME%\ssl\cert\server.crt
rem ===========================================================
rem DB 설정
rem [ NTRI_DB_DIALECT 입력값 목록]
rem Dialect는 DBMS 버전별 상이할 수 있으므로 안될 경우 인터넷 검색
rem -. Oracle: Oracle10gDialect
rem -. Maria: MariaDB106Dialect
rem -. Mysql: MySQL5InnoDBDialect
rem ===========================================================
set NTRI_DB_DIALECT=Oracle10gDialect
set NTRI_DB_DRIVER=oracle.jdbc.OracleDriver
set NTRI_DB_URL=jdbc:oracle:thin:@105.13.2.40:1521:ora11g
set NTRI_DB_USER=xit_traffic
set NTRI_DB_PASSWD=traffic5
rem ===========================================================
rem VM 옵션
rem ===========================================================
rem set NTRI_VM_OPTIONS=-Dspring.profiles.active=prod -Dapp.server.port=%NTRI_APP_PORT% -Dapp.datasource.platform=%NTRI_DB_DIALECT% -Dapp.datasource.driver=%NTRI_DB_DRIVER% -Dapp.datasource.url=%NTRI_DB_URL% -Dapp.datasource.username=%NTRI_DB_USER% -Dapp.datasource.password=%NTRI_DB_PASSWD% -Dapp.ssl.enabled=%NTRI_SSL_ENABLED% -Dapp.ssl.key-alias=%NTRI_SSL_KEY_AS% -Dapp.ssl.key-store=%NTRI_SSL_KEY_STORE% -Dapp.ssl.key-store-type=%NTRI_SSL_KEY_STORE_TYPE% -Dapp.ssl.key-tore-password=%NTRI_SSL_KEY_STORE_PASSWORD%
set NTRI_VM_OPTIONS=-Dspring.profiles.active=prod -Dapp.server.port=%NTRI_APP_PORT% -Dapp.datasource.platform=%NTRI_DB_DIALECT% -Dapp.datasource.driver=%NTRI_DB_DRIVER% -Dapp.datasource.url=%NTRI_DB_URL% -Dapp.datasource.username=%NTRI_DB_USER% -Dapp.datasource.password=%NTRI_DB_PASSWD% -Dapp.ssl.enabled=%NTRI_SSL_ENABLED% -Dapp.ssl.private-key=%NTRI_SSL_PRIVATE_KEY% -Dapp.ssl.cert=%NTRI_SSL_CERT%
set NTRI_VM_OPTIONS=%NTRI_VM_OPTIONS% -Dapp.resp.linkTrgtCd=%NTRI_APP_LINKTRGTCD%
rem ===========================================================
rem CURL 파일 경로
rem ===========================================================
set NTRI_CURL_PATH=%NTRI_APP_HOME%\bin\test\curl_7_53_1_openssl_nghttp2_x64