Skip to content

Commit

Permalink
细节修复
Browse files Browse the repository at this point in the history
  • Loading branch information
letwang committed Jul 4, 2019
1 parent 75d59ca commit a9b703a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ sudo docker run -itd -p 8080:80 --name hookphp \
-v `pwd`/docker/log:/var/log \
-v `pwd`/../:/usr/share/nginx/html \
letwang/hookphp /bin/bash &&
sudo docker exec -d hookphp bash /usr/share/nginx/html/HookPHP/docker/init.sh
sudo docker exec hookphp bash /usr/share/nginx/html/HookPHP/docker/init.sh
sudo docker ps -a &&
sudo docker images
```
Expand Down
6 changes: 4 additions & 2 deletions docker/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ cd /usr/share/nginx/html/HookPHP/ &&
chmod 777 -R docker/log &&
chmod 777 -R log &&
chmod 777 -R conf &&
composer install &&
wget -P vendor/Hook/Tika http://mirrors.tuna.tsinghua.edu.cn/apache/tika/tika-app-1.21.jar &&
composer install
if [ ! -f "vendor/Hook/Tika/tika-app-1.21.jar" ];then
wget -P vendor/Hook/Tika http://mirrors.tuna.tsinghua.edu.cn/apache/tika/tika-app-1.21.jar
fi
php app/admin/bin/install.php &&
php app/iot/bin/install.php &&
php app/paas/bin/install.php &&
Expand Down
2 changes: 1 addition & 1 deletion docker/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ server {
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header Referrer-Policy "origin-when-cross-origin, strict-origin-when-cross-origin";
add_header Content-Security-Policy "default-src 'self' https://cdn.bootcss.com";
#add_header Content-Security-Policy "default-src 'self' https://cdn.bootcss.com";
add_header X-Request-Id $request_id;

fastcgi_pass 127.0.0.1:9000;
Expand Down
Empty file added log/default/.gitignore
Empty file.

0 comments on commit a9b703a

Please sign in to comment.