Commit 261f9fab authored by 赵啸非's avatar 赵啸非

修改配置文件1

parent bb8f1601
#开发环境 #开发环境
NODE_ENV = "test" NODE_ENV = "test"
VUE_APP_API_BASE_URL=http://192.168.0.98:17002 VUE_APP_API_BASE_URL=http://192.168.0.98:11078
\ No newline at end of file \ No newline at end of file
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
<profiles.active>develop</profiles.active> <profiles.active>develop</profiles.active>
<profiles.server.port>17002</profiles.server.port> <profiles.server.port>17002</profiles.server.port>
<profiles.nginx.port>11099</profiles.nginx.port> <profiles.nginx.port>11099</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/sampleform</profiles.server.path> <profiles.server.path>/sampleform</profiles.server.path>
<profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host> <profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host>
<profiles.rabbitmq.port>5672</profiles.rabbitmq.port> <profiles.rabbitmq.port>5672</profiles.rabbitmq.port>
...@@ -50,6 +51,7 @@ ...@@ -50,6 +51,7 @@
<profiles.server.ip>192.168.0.98</profiles.server.ip> <profiles.server.ip>192.168.0.98</profiles.server.ip>
<profiles.server.port>11078</profiles.server.port> <profiles.server.port>11078</profiles.server.port>
<profiles.nginx.port>11099</profiles.nginx.port> <profiles.nginx.port>11099</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/sampleform</profiles.server.path> <profiles.server.path>/sampleform</profiles.server.path>
<profiles.publish.path>/home/publish</profiles.publish.path> <profiles.publish.path>/home/publish</profiles.publish.path>
<profiles.rabbitmq.host>192.168.0.98</profiles.rabbitmq.host> <profiles.rabbitmq.host>192.168.0.98</profiles.rabbitmq.host>
...@@ -73,6 +75,7 @@ ...@@ -73,6 +75,7 @@
<profiles.server.ip>192.168.0.251</profiles.server.ip> <profiles.server.ip>192.168.0.251</profiles.server.ip>
<profiles.server.port>17002</profiles.server.port> <profiles.server.port>17002</profiles.server.port>
<profiles.nginx.port>11099</profiles.nginx.port> <profiles.nginx.port>11099</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/sampleform</profiles.server.path> <profiles.server.path>/sampleform</profiles.server.path>
<profiles.publish.path>/home/publish</profiles.publish.path> <profiles.publish.path>/home/publish</profiles.publish.path>
<profiles.rabbitmq.host>192.168.0.251</profiles.rabbitmq.host> <profiles.rabbitmq.host>192.168.0.251</profiles.rabbitmq.host>
...@@ -179,6 +182,11 @@ ...@@ -179,6 +182,11 @@
<directory>src/main/resources</directory> <directory>src/main/resources</directory>
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
<!-- <resource>-->
<!-- <directory>../sample-form-manager-ui/admin</directory>-->
<!-- <filtering>true</filtering>-->
<!-- </resource>-->
</resources> </resources>
<plugins> <plugins>
......
...@@ -9,11 +9,12 @@ BASEDIR=$( ( ...@@ -9,11 +9,12 @@ BASEDIR=$( (
LOCK_FILE="/tmp/deploy.lock" LOCK_FILE="/tmp/deploy.lock"
# 时间变量 # 时间变量
CDATE=$(date "+%Y-%m-%d") CDATE=$(date "+%Y-%m-%d")
CTIME=$(date "+%H-%M-%S") CTIME=$(date "+%H:%M:%S")
PUBLISH_PATH="@profiles.publish.path@" PUBLISH_PATH="@profiles.publish.path@"
PROJECT_NAME="@project.artifactId@" PROJECT_NAME="@project.artifactId@"
IP="@profiles.server.ip@" IP="@profiles.server.ip@"
PORT="@profiles.server.port@" PORT="@profiles.server.port@"
GATEWAY_PORT="@profiles.server.gatewayport@"
SHELL_LOG="${BASEDIR}/${SHELL_NAME}.log" SHELL_LOG="${BASEDIR}/${SHELL_NAME}.log"
...@@ -104,7 +105,7 @@ build_nginx() { ...@@ -104,7 +105,7 @@ build_nginx() {
} }
location ${NGINX_SERVER_PATH}/ { location ${NGINX_SERVER_PATH}/ {
proxy_pass http://${IP}:${PORT}; proxy_pass http://${IP}:${GATEWAY_PORT};
proxy_set_header Host \$host; proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment