|
|
@@ -187,6 +187,11 @@ server {
|
|
|
proxy_set_header Host {{domain}}.test.proginn.com;
|
|
|
}
|
|
|
|
|
|
+ location ^~ /wapi {
|
|
|
+ proxy_pass http://127.0.0.1:5001;
|
|
|
+ proxy_set_header Host {{domain}}.test.proginn.com;
|
|
|
+ }
|
|
|
+
|
|
|
location ~ ^/company$ {
|
|
|
proxy_pass http://127.0.0.1:3000;
|
|
|
proxy_set_header Host $host;
|
|
|
@@ -474,3 +479,60 @@ server {
|
|
|
|
|
|
access_log /data/log/user_proginn_access.log proginn-logid;
|
|
|
}
|
|
|
+# 用户模块
|
|
|
+server {
|
|
|
+ listen 5000;
|
|
|
+ server_name {{domain}}.test.proginn.com;
|
|
|
+
|
|
|
+ root /proginn-user/public/;
|
|
|
+ index index.php index.html index.htm;
|
|
|
+
|
|
|
+
|
|
|
+ location / {
|
|
|
+ if (!-e $request_filename) {
|
|
|
+ rewrite ^(.*)$ /index.php?s=$1 last;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set $temp_request_id $http_x_request_id;
|
|
|
+ if ($temp_request_id = "") {
|
|
|
+ set $temp_request_id $request_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ~ \.php$ {
|
|
|
+ fastcgi_pass unix:/var/run/php7-fpm.sock;
|
|
|
+ fastcgi_index index.php;
|
|
|
+ include fastcgi_params;
|
|
|
+ }
|
|
|
+
|
|
|
+ access_log /data/log/user_proginn_access.log proginn-logid;
|
|
|
+}
|
|
|
+
|
|
|
+# 工作模块
|
|
|
+server {
|
|
|
+ listen 5001;
|
|
|
+ server_name {{domain}}.test.proginn.com;
|
|
|
+
|
|
|
+ root /proginn-user/public/;
|
|
|
+ index index.php index.html index.htm;
|
|
|
+
|
|
|
+
|
|
|
+ location / {
|
|
|
+ if (!-e $request_filename) {
|
|
|
+ rewrite ^(.*)$ /index.php?s=$1 last;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ set $temp_request_id $http_x_request_id;
|
|
|
+ if ($temp_request_id = "") {
|
|
|
+ set $temp_request_id $request_id;
|
|
|
+ }
|
|
|
+
|
|
|
+ location ~ \.php$ {
|
|
|
+ fastcgi_pass unix:/var/run/php7-fpm.sock;
|
|
|
+ fastcgi_index index.php;
|
|
|
+ include fastcgi_params;
|
|
|
+ }
|
|
|
+
|
|
|
+ access_log /data/log/work_proginn_access.log proginn-logid;
|
|
|
+}
|