Commit d65dccbe authored by 赵啸非's avatar 赵啸非

重新设置配置文件

parent 134d10a7
...@@ -53,8 +53,9 @@ ...@@ -53,8 +53,9 @@
<properties> <properties>
<profiles.active>test</profiles.active> <profiles.active>test</profiles.active>
<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>18225</profiles.server.port>
<profiles.nginx.port>11091</profiles.nginx.port> <profiles.nginx.port>11092</profiles.nginx.port>
<profiles.server.gatewayport>11078</profiles.server.gatewayport>
<profiles.server.path>/logservice</profiles.server.path> <profiles.server.path>/logservice</profiles.server.path>
<profiles.publish.path>/home/publish</profiles.publish.path> <profiles.publish.path>/home/publish</profiles.publish.path>
<profiles.datasource.uri> <profiles.datasource.uri>
...@@ -86,8 +87,9 @@ ...@@ -86,8 +87,9 @@
<properties> <properties>
<profiles.active>product</profiles.active> <profiles.active>product</profiles.active>
<profiles.server.ip>192.168.0.251</profiles.server.ip> <profiles.server.ip>192.168.0.251</profiles.server.ip>
<profiles.server.port>11078</profiles.server.port> <profiles.server.port>18225</profiles.server.port>
<profiles.nginx.port>11092</profiles.nginx.port> <profiles.nginx.port>11092</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.datasource.uri> <profiles.datasource.uri>
......
...@@ -14,6 +14,7 @@ PUBLISH_PATH="@profiles.publish.path@" ...@@ -14,6 +14,7 @@ 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"
...@@ -97,14 +98,14 @@ build_nginx() { ...@@ -97,14 +98,14 @@ build_nginx() {
gzip_disable \"MSIE [1-6]\.\"; gzip_disable \"MSIE [1-6]\.\";
listen ${NGINX_PORT}; listen ${NGINX_PORT};
server_name localhost; #server_name localhost;
location / { location / {
root ${PROJECT_UI_EXECPATH}/dist; root ${PROJECT_UI_EXECPATH}/dist;
index index.html index.htm; index index.html index.htm;
} }
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