|
@@ -19,12 +19,7 @@ server {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# user content domain access check
|
|
# user content domain access check
|
|
|
- # The project-id is zero prefixed. No actual user project uses these ids.
|
|
|
|
|
- # mongo-id 000000000000000000000000 -> 1970-01-01T00:00:00.000Z
|
|
|
|
|
- # mongo-id 000000010000000000000000 -> 1970-01-01T00:00:01.000Z
|
|
|
|
|
- # mongo-id 100000000000000000000000 -> 1978-07-04T21:24:16.000Z
|
|
|
|
|
- # This allows us to distinguish between check-traffic and regular output traffic.
|
|
|
|
|
- location ~ ^/project/0([0-9a-f]+)/user/([0-9a-f]+)/build/([0-9a-f-]+)/output/output\.pdf$ {
|
|
|
|
|
|
|
+ location ~ ^/project/0cba050a0cec68384666fad1/user/([0-9a-f]+)/build/([0-9a-f-]+)/output/output\.pdf$ {
|
|
|
if ($request_method = 'OPTIONS') {
|
|
if ($request_method = 'OPTIONS') {
|
|
|
# handle OPTIONS method for CORS requests
|
|
# handle OPTIONS method for CORS requests
|
|
|
add_header 'Allow' 'GET,HEAD';
|
|
add_header 'Allow' 'GET,HEAD';
|
|
@@ -32,7 +27,7 @@ server {
|
|
|
}
|
|
}
|
|
|
alias /var/clsi/tiny.pdf;
|
|
alias /var/clsi/tiny.pdf;
|
|
|
}
|
|
}
|
|
|
- location ~ ^/project/0([0-9a-f]+)/build/([0-9a-f-]+)/output/output\.pdf$ {
|
|
|
|
|
|
|
+ location ~ ^/project/0cba050a0cec68384666fad1/build/([0-9a-f-]+)/output/output\.pdf$ {
|
|
|
if ($request_method = 'OPTIONS') {
|
|
if ($request_method = 'OPTIONS') {
|
|
|
# handle OPTIONS method for CORS requests
|
|
# handle OPTIONS method for CORS requests
|
|
|
add_header 'Allow' 'GET,HEAD';
|
|
add_header 'Allow' 'GET,HEAD';
|