Improve nginx matching on incoming URLs
This commit is contained in:
parent
14b0570859
commit
5ebdf5ca77
@ -42,6 +42,20 @@
|
||||
|
||||
}
|
||||
|
||||
location /bigbluebutton/presentation/download {
|
||||
return 404;
|
||||
}
|
||||
|
||||
location ~ "^/bigbluebutton/presentation/download\/[0-9a-f]+-[0-9]+/[0-9a-f]+-[0-9]+$" {
|
||||
if ($arg_presFilename !~ "^[0-9a-f]+-[0-9]+\.[0-9a-zA-Z]+$") {
|
||||
return 404;
|
||||
}
|
||||
proxy_pass http://127.0.0.1:8090$uri$is_args$args;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
# Workaround IE refusal to set cookies in iframe
|
||||
add_header P3P 'CP="No P3P policy available"';
|
||||
}
|
||||
|
||||
location = /bigbluebutton/presentation/checkPresentation {
|
||||
proxy_pass http://127.0.0.1:8090;
|
||||
proxy_redirect default;
|
||||
|
Loading…
Reference in New Issue
Block a user