修复语法问题
This commit is contained in:
@@ -16,19 +16,19 @@ return [
|
|||||||
|
|
||||||
// 数据库连接
|
// 数据库连接
|
||||||
'db' => [
|
'db' => [
|
||||||
'host' => '127.0.0.1',
|
'host' => 'mysql',
|
||||||
'port' => 3306,
|
'port' => 3306,
|
||||||
'dbname' => 'hualianyun',
|
'dbname' => 'hualianyun',
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => 'qaz123!@#',
|
'password' => '123456789',
|
||||||
],
|
],
|
||||||
// 线上数据库连接
|
// 线上数据库连接
|
||||||
'formal_db' => [
|
'formal_db' => [
|
||||||
'host' => '127.0.0.1',
|
'host' => 'mysql',
|
||||||
'port' => 3306,
|
'port' => 3306,
|
||||||
'dbname' => 'hualianyun',
|
'dbname' => 'hualianyun',
|
||||||
'username' => 'root',
|
'username' => 'root',
|
||||||
'password' => 'qaz123!@#',
|
'password' => '123456789',
|
||||||
],
|
],
|
||||||
//线上地址
|
//线上地址
|
||||||
'formal_origin' => [
|
'formal_origin' => [
|
||||||
@@ -58,7 +58,7 @@ return [
|
|||||||
'http://rg.jkip.com',
|
'http://rg.jkip.com',
|
||||||
'http://http.wyk',
|
'http://http.wyk',
|
||||||
'http://taobao.juip.com',
|
'http://taobao.juip.com',
|
||||||
'http://register.wyk'
|
'http://register.wyk',
|
||||||
],
|
],
|
||||||
//支付宝
|
//支付宝
|
||||||
'alipay' => [
|
'alipay' => [
|
||||||
|
|||||||
19
nginx.conf
19
nginx.conf
@@ -2,17 +2,6 @@ server {
|
|||||||
listen 9000;
|
listen 9000;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
# CORS
|
|
||||||
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
|
|
||||||
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
|
|
||||||
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With' always;
|
|
||||||
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
|
||||||
|
|
||||||
# pre-flight requests
|
|
||||||
if ($request_method = 'OPTIONS') {
|
|
||||||
return 204;
|
|
||||||
}
|
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
|
|
||||||
@@ -29,5 +18,13 @@ server {
|
|||||||
rewrite ^(.*)$ /index.php?s=$1 last;
|
rewrite ^(.*)$ /index.php?s=$1 last;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($request_method = 'OPTIONS') {
|
||||||
|
add_header 'Access-Control-Allow-Origin' "$http_origin" always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
|
||||||
|
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With' always;
|
||||||
|
add_header 'Access-Control-Allow-Credentials' 'true' always;
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user