|
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rem ===========================================================
|
|
|
|
|
rem Application <20><><EFBFBD><EFBFBD>
|
|
|
|
|
rem [ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>(NTRI_APP_LINKTRGTCD) ȯ<>溯<EFBFBD><E6BAAF> <20><><EFBFBD><EFBFBD> ]
|
|
|
|
|
rem <20><><EFBFBD>ܼ<EFBFBD><DCBC>Կ<EFBFBD><D4BF><EFBFBD> <20>ο<EFBFBD><CEBF><EFBFBD> <20>ý<EFBFBD><C3BD><EFBFBD><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> 15<31>ڸ<EFBFBD>.
|
|
|
|
|
rem -. Format: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>(7)+<2B><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD><EFBFBD><EFBFBD>ڵ<EFBFBD>(3)+<2B><><EFBFBD><EFBFBD><EFBFBD>Ϸù<CFB7>ȣ(5)
|
|
|
|
|
rem -. ex) 3990000PVM00001 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(3990000)+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><C2B7>ý<EFBFBD><C3BD><EFBFBD>(PVM)+<2B><><EFBFBD><EFBFBD><EFBFBD>Ϸù<CFB7>ȣ(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 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
rem ===========================================================
|
|
|
|
|
set NTRI_SERVICE_NAME="Apache Tomcat - NTRI"
|
|
|
|
|
set NTRI_SERVICE_DESCRIPTION="XIT <20><><EFBFBD>ܼ<EFBFBD><DCBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD><EFBFBD> <20><><EFBFBD><EFBFBD> API <20>Դϴ<D4B4>"
|
|
|
|
|
set NTRI_LOG_PATH=%NTRI_APP_HOME%/logs
|
|
|
|
|
|
|
|
|
|
rem ===========================================================
|
|
|
|
|
rem JDK <20><><EFBFBD><EFBFBD>
|
|
|
|
|
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 <20><><EFBFBD><EFBFBD>
|
|
|
|
|
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 <20><><EFBFBD><EFBFBD>
|
|
|
|
|
rem [ NTRI_DB_DIALECT <20>Է°<D4B7> <20><><EFBFBD><EFBFBD>]
|
|
|
|
|
rem Dialect<63><74> DBMS <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD> <20>ȵ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>ͳ<EFBFBD> <20>˻<EFBFBD>
|
|
|
|
|
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 <20>ɼ<EFBFBD>
|
|
|
|
|
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 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
rem ===========================================================
|
|
|
|
|
set NTRI_CURL_PATH=%NTRI_APP_HOME%\bin\test\curl_7_53_1_openssl_nghttp2_x64
|