Commit 0b6c1057 by mxy

add sosocar

parent 8bbdebbb
File deleted
...@@ -9,4 +9,5 @@ laravel/* ...@@ -9,4 +9,5 @@ laravel/*
gulp/* gulp/*
!gulp/.gitkeep !gulp/.gitkeep
.c9/ .c9/
.idea/ .idea/
\ No newline at end of file id_rsa
\ No newline at end of file
...@@ -2,5 +2,4 @@ ...@@ -2,5 +2,4 @@
no-resolv no-resolv
server=223.5.5.5 server=223.5.5.5
server=223.6.6.6 server=223.6.6.6
address=/.test/127.0.0.1 address=/.test/127.0.0.1
address=/gw.proxy/172.31.1.104 \ No newline at end of file
\ No newline at end of file
...@@ -11,18 +11,18 @@ services: ...@@ -11,18 +11,18 @@ services:
- 80:80 - 80:80
volumes: volumes:
- '.:/workspace' - '.:/workspace'
hostname: workspace hostname: local
mysql.test: mysql.test:
container_name: mysql container_name: mysql
image: mysql:8 image: mysql:5.5
networks: networks:
- wb_net - wb_net
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
volumes: volumes:
- './storage/mysql:/var/lib/mysql' - './storage/mysql:/var/lib/mysql'
- './my.cnf:/etc/mysql/my.cnf' # - './my.cnf:/etc/mysql/my.cnf'
ports: ports:
- 3306:3306 - 3306:3306
hostname: mysql hostname: mysql
......
...@@ -60,4 +60,38 @@ server { ...@@ -60,4 +60,38 @@ server {
location ~ /\.(?!well-known).* { location ~ /\.(?!well-known).* {
deny all; deny all;
} }
}
server {
listen 80;
keepalive_timeout 60;
server_name sosocar.test;
root /workspace/laravel/topka/public;
location / {
if (!-e $request_filename) {
rewrite ^(.*) /index.php last;
}
if (-d $request_filename) {
rewrite ^(.*) /index.php last;
}
}
location /upload/images {
rewrite ^.+upload/images/(.*)$ /upload/images/$1 break;
proxy_pass http://api.sosocar.cn;
}
location /tb/brand {
rewrite ^.+tb/brand/(.*)$ /tb/brand/$1 break;
proxy_pass http://api.sosocar.cn;
}
location /tb/series {
rewrite ^.+tb/series/(.*)$ /tb/series/$1 break;
proxy_pass http://api.sosocar.cn;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
} }
\ No newline at end of file
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