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

修改配置文件1

parent bb8f1601
#开发环境
NODE_ENV = "test"
VUE_APP_API_BASE_URL=http://192.168.0.98:17002
\ No newline at end of file
VUE_APP_API_BASE_URL=http://192.168.0.98:11078
\ No newline at end of file
......@@ -27,6 +27,7 @@
<profiles.active>develop</profiles.active>
<profiles.server.port>17002</profiles.server.port>
<profiles.nginx.port>11099</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/sampleform</profiles.server.path>
<profiles.rabbitmq.host>127.0.0.1</profiles.rabbitmq.host>
<profiles.rabbitmq.port>5672</profiles.rabbitmq.port>
......@@ -50,6 +51,7 @@
<profiles.server.ip>192.168.0.98</profiles.server.ip>
<profiles.server.port>11078</profiles.server.port>
<profiles.nginx.port>11099</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/sampleform</profiles.server.path>
<profiles.publish.path>/home/publish</profiles.publish.path>
<profiles.rabbitmq.host>192.168.0.98</profiles.rabbitmq.host>
......@@ -73,6 +75,7 @@
<profiles.server.ip>192.168.0.251</profiles.server.ip>
<profiles.server.port>17002</profiles.server.port>
<profiles.nginx.port>11099</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/sampleform</profiles.server.path>
<profiles.publish.path>/home/publish</profiles.publish.path>
<profiles.rabbitmq.host>192.168.0.251</profiles.rabbitmq.host>
......@@ -179,6 +182,11 @@
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<!-- <resource>-->
<!-- <directory>../sample-form-manager-ui/admin</directory>-->
<!-- <filtering>true</filtering>-->
<!-- </resource>-->
</resources>
<plugins>
......
......@@ -9,11 +9,12 @@ BASEDIR=$( (
LOCK_FILE="/tmp/deploy.lock"
# 时间变量
CDATE=$(date "+%Y-%m-%d")
CTIME=$(date "+%H-%M-%S")
CTIME=$(date "+%H:%M:%S")
PUBLISH_PATH="@profiles.publish.path@"
PROJECT_NAME="@project.artifactId@"
IP="@profiles.server.ip@"
PORT="@profiles.server.port@"
GATEWAY_PORT="@profiles.server.gatewayport@"
SHELL_LOG="${BASEDIR}/${SHELL_NAME}.log"
......@@ -104,7 +105,7 @@ build_nginx() {
}
location ${NGINX_SERVER_PATH}/ {
proxy_pass http://${IP}:${PORT};
proxy_pass http://${IP}:${GATEWAY_PORT};
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
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