Last active
October 24, 2016 21:40
-
-
Save densone/92857bf63a8c5a79788d23a271f49b71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* ^(/v1/events/.*) { | |
add_header Cache-Control "no-cache"; | |
expires 0s; | |
} | |
location ~ \.(php|hh)$ { | |
try_files $uri =404; | |
# fastcgi_pass unix:/var/run/hhvm/sock; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_split_path_info ^(.+.php)(/.+)$; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
# fastcgi_param SCRIPT_FILENAME $request_filename; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_read_timeout 3600; | |
add_header "Access-Control-Allow-Credentials" "true"; | |
add_header "Access-Control-Allow-Methods" "GET, POST, PUT, DELETE, OPTIONS"; | |
add_header "Access-Control-Allow-Headers" "Content-Type, Accept, x-requested-with"; | |
# cors options | |
if ($request_method = "OPTIONS") { return 204; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment