|
|
@@ -56,6 +56,15 @@ server {
|
|
|
}
|
|
|
alias /output/$1-$2/generated-files/$3/output.$4;
|
|
|
}
|
|
|
+ # handle .blg files for specific users
|
|
|
+ location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)\.blg$ {
|
|
|
+ if ($request_method = 'OPTIONS') {
|
|
|
+ # handle OPTIONS method for CORS requests
|
|
|
+ add_header 'Allow' 'GET,HEAD';
|
|
|
+ return 204;
|
|
|
+ }
|
|
|
+ alias /output/$1-$2/generated-files/$3/$4.blg;
|
|
|
+ }
|
|
|
# handle output files for anonymous users
|
|
|
location ~ ^/project/([0-9a-f]+)/build/([0-9a-f-]+)/output/output\.([a-z]+)$ {
|
|
|
if ($request_method = 'OPTIONS') {
|
|
|
@@ -66,6 +75,15 @@ server {
|
|
|
}
|
|
|
alias /output/$1/generated-files/$2/output.$3;
|
|
|
}
|
|
|
+ # handle .blg files for anonymous users
|
|
|
+ location ~ ^/project/([0-9a-f]+)/build/([0-9a-f-]+)/output/(.+)\.blg$ {
|
|
|
+ if ($request_method = 'OPTIONS') {
|
|
|
+ # handle OPTIONS method for CORS requests
|
|
|
+ add_header 'Allow' 'GET,HEAD';
|
|
|
+ return 204;
|
|
|
+ }
|
|
|
+ alias /output/$1/generated-files/$2/$3.blg;
|
|
|
+ }
|
|
|
|
|
|
# PDF range for specific users
|
|
|
location ~ ^/project/([0-9a-f]+)/user/([0-9a-f]+)/content/([0-9a-f-]+/[0-9a-f]+)$ {
|