Commit 0b6c1057 by mxy

add sosocar

parent 8bbdebbb
File deleted
......@@ -9,4 +9,5 @@ laravel/*
gulp/*
!gulp/.gitkeep
.c9/
.idea/
\ No newline at end of file
.idea/
id_rsa
\ No newline at end of file
......@@ -2,5 +2,4 @@
no-resolv
server=223.5.5.5
server=223.6.6.6
address=/.test/127.0.0.1
address=/gw.proxy/172.31.1.104
\ No newline at end of file
address=/.test/127.0.0.1
\ No newline at end of file
......@@ -11,18 +11,18 @@ services:
- 80:80
volumes:
- '.:/workspace'
hostname: workspace
hostname: local
mysql.test:
container_name: mysql
image: mysql:8
image: mysql:5.5
networks:
- wb_net
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- './storage/mysql:/var/lib/mysql'
- './my.cnf:/etc/mysql/my.cnf'
# - './my.cnf:/etc/mysql/my.cnf'
ports:
- 3306:3306
hostname: mysql
......
......@@ -60,4 +60,38 @@ server {
location ~ /\.(?!well-known).* {
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