Przeglądaj źródła

[clsi] fix nginx regex for submission IDs with uppercase characters

GitOrigin-RevId: 28d85ebcf5abdb146d2fe8886039d0da0af08d53
Daniel Kontsek 5 miesięcy temu
rodzic
commit
e60ac573bc
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      services/clsi/nginx.conf

+ 2 - 2
services/clsi/nginx.conf

@@ -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/;
   }