mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[clsi] fix nginx regex for submission IDs with uppercase characters
GitOrigin-RevId: 28d85ebcf5abdb146d2fe8886039d0da0af08d53
This commit is contained in:
@@ -62,13 +62,13 @@ server {
|
||||
root /output/$1/generated-files/$2/;
|
||||
}
|
||||
# handle output files for submissions
|
||||
location ~ ^/project/([a-z0-9_-]+)/build/([0-9a-f-]+)/output/(.+)$ {
|
||||
location ~ ^/project/([a-zA-Z0-9_-]+)/build/([0-9a-f-]+)/output/(.+)$ {
|
||||
if ($request_method = 'OPTIONS') {
|
||||
# handle OPTIONS method for CORS requests
|
||||
add_header 'Allow' 'GET,HEAD';
|
||||
return 204;
|
||||
}
|
||||
rewrite ^/project/([a-z0-9_-]+)/build/([0-9a-f-]+)/output/(.+)$ /$3 break;
|
||||
rewrite ^/project/([a-zA-Z0-9_-]+)/build/([0-9a-f-]+)/output/(.+)$ /$3 break;
|
||||
root /output/$1/generated-files/$2/;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user