Last active
August 29, 2015 14:06
-
-
Save pablodevopensource/f652bd282aaca647517c 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
#/etc/nginx/sites-available/ | |
server { | |
# listen on port 80 | |
listen 80; | |
# for requests to these domains | |
server_name logs.devopen.com; | |
# keep logs in these files | |
access_log /var/log/nginx/sentry.access.log; | |
error_log /var/log/nginx/sentry.error.log; | |
# You need this to allow users to upload large files | |
# See http://wiki.nginx.org/HttpCoreModule#client_max_body_size | |
# I'm not sure where it goes, so I put it in twice. It works. | |
client_max_body_size 0; | |
location / { | |
proxy_pass http://localhost:9000; | |
proxy_redirect off; | |
# You need this to allow users to upload large files | |
# See http://wiki.nginx.org/HttpCoreModule#client_max_body_size | |
# I'm not sure where it goes, so I put it in twice. It works. | |
client_max_body_size 0; | |
location / { | |
proxy_pass http://localhost:9000; | |
proxy_redirect off; | |
proxy_read_timeout 5m; | |
# make sure these HTTP headers are set properly | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment