Merge pull request #2 from volltin/master

fix include attack
This commit is contained in:
李扬 2017-03-18 01:54:25 +08:00 committed by GitHub
commit a1eb1628ee
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ services:
- /judger_run:exec,mode=777
- /spj:exec,mode=777
volumes:
- $PWD/tests/test_case:/test_case:ro
- $PWD/tests/test_case:/test_case
- /data/log:/log
- $PWD/server:/code:ro
- $PWD/token.txt:/token.txt

View File

@ -4,4 +4,5 @@ echo 0 > /tmp/counter
core=$(grep --count ^processor /proc/cpuinfo)
n=$(($core*4))
chmod 400 /token.txt /tmp/counter
chmod -R 400 /test_case
gunicorn --workers $n --threads $n --error-logfile /log/gunicorn.log --time 600 --bind 0.0.0.0:8080 server:wsgiapp