#!/bin/sh
#===============================================================================
# SCRIPT    : set-server-env.sh
# AUTHOR    : Rock
# Date      : 2007-08-23
# REV       : 5.4
# PLATFORM  : AIX RedHatLinux SuseLinux Solaris HpUnix OS/400
# PURPOSE   : This script is used to define EAS runtime variavables.
# 
# Copyright(c) 2007 Kingdee Co.,Ltd.
# All Rights Reserved 
#===============================================================================
OS_NAME=`uname -s`
export OS_NAME

EAS_HOME=/KD/Kingdee90/eas
JAVA_HOME=/KD/Kingdee90/eas/openjdk
export EAS_HOME
export JAVA_HOME

if [ $OS_NAME = "HP-UX" ]
then
  CMD_PERL=/opt/perl/bin/perl
  kctune nfile=131000
  kctune maxfiles_lim=65000
  kctune maxfiles=65000
else
  CMD_PERL=/usr/bin/perl
  ulimit -n 65000
fi
export CMD_PERL

LANG=C
export $LANG

ulimit -d unlimited


#PERL5LIB=$EAS_HOME/server/perl/lib
#export PERL5LIB

#application server config
APP_SERVER_TYPE=apusic
APP_SERVER_HOME=/KD/Kingdee90/apusic
APP_SERVER_VERSION=
export APP_SERVER_TYPE
export APP_SERVER_HOME
export APP_SERVER_VERSION

APUSIC_SERVER_HOME=/KD/Kingdee90/apusic
WAS_SERVER_HOME=
WLS_SERVER_HOME=
export APUSIC_SERVER_HOME
export WAS_SERVER_HOME
export WLS_SERVER_HOME
EAS_NODEID=EAS909377711047938924265
export EAS_NODEID
HTTPSERVER_PORT=10060
export HTTPSERVER_PORT
ADMINSERVER_PORT=10061
export ADMINSERVER_PORT


# ===== custom env =====
# 部署环境标识	 dev  test  prod
ENV=test
export ENV

# OAuth配置路径（按环境区分）
INTEGRATION_CONFIG_PATH=$EAS_HOME/server/properties/integration-config-${ENV}.json
export INTEGRATION_CONFIG_PATH

# @REM AES-256-GCM 密钥，用于加密/解密 integration-config.json 中的钉/飞书XXX appSecret
OAUTH_ENCRYPT_KEY=lIQIzvTH8IGOqeQ2vuwLdANf
export OAUTH_ENCRYPT_KEY