Procházet zdrojové kódy

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

GitOrigin-RevId: 28d85ebcf5abdb146d2fe8886039d0da0af08d53
Daniel Kontsek před 7 měsíci
rodič
revize
e60ac573bc
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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/;
   }