Created
January 28, 2014 22:39
-
-
Save STRd6/8678128 to your computer and use it in GitHub Desktop.
Static Heroku nginx buildpack conf
This file contains 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
worker_processes 1; | |
error_log stderr; | |
pid nginx.pid; | |
daemon off; | |
events { | |
worker_connections 768; | |
} | |
http { | |
server { | |
# HACK: Fixes Facebook's canvas pages by turning POST error to GET for same uri. | |
error_page 405 =200 $uri; | |
listen <%= ENV['PORT'] %>; | |
server_name _; | |
root /app; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment