mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-01-15 21:12:54 +00:00
fix include attack
avoid `#include "/test_case/1000/1.in"`
This commit is contained in:
parent
f758d2fe7b
commit
4861376841
@ -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
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user