Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- error_log stderr notice;
- daemon off;
- env DUWAMISH_GUNICORN_PORT;
- events {
- worker_connections 1024;
- }
- http {
- ##
- # Basic Settings
- ##
- #sendfile on;
- #tcp_nopush on;
- #tcp_nodelay on;
- #keepalive_timeout 65;
- #types_hash_max_size 2048;
- # server_tokens off;
- # server_names_hash_bucket_size 64;
- # server_name_in_redirect off;
- # include /etc/nginx/mime.types;
- include /usr/local/openresty/nginx/conf/mime.types;
- # default_type application/octet-stream;
- charset utf-8;
- ##
- # Logging Settings
- ##
- access_log /var/log/nginx/access.log;
- error_log /var/log/nginx/error.log;
- ##
- # Gzip Settings
- ##
- # gzip on;
- # gzip_disable "msie6";
- # gzip_vary on;
- # gzip_proxied any;
- # gzip_comp_level 6;
- # gzip_buffers 16 8k;
- # gzip_http_version 1.1;
- # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
- # upstream django {
- # # set_by_lua $server_location 'return os.getenv("DUWAMISH-GUNICORN_PORT")';
- # server $server_location;
- # }
- ##
- # nginx-naxsi config
- ##
- # Uncomment it if you installed nginx-naxsi
- ##
- # include /etc/nginx/naxsi_core.rules;
- ##
- # Virtual Host Configs
- #
- # include /etc/nginx/conf.d/*.conf;
- # include /etc/nginx/sites-enabled/*;
- server {
- listen 80;
- server_name dev.heyduwamish.org;
- # root /home/lucas/duwamish-dev/public;
- access_log /var/log/nginx/server_access.log;
- error_log /var/log/nginx/server_error.log;
- location /static/ {
- alias /duwamish/staticfiles;
- }
- location / {
- # an HTTP header important enough to have its own Wikipedia entry:
- # http://en.wikipedia.org/wiki/X-Forwarded-For
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- # enable this if and only if you use HTTPS, this helps Rack
- # set the proper protocol for doing redirects:
- # proxy_set_header X-Forwarded-Proto https;
- # pass the Host: header from the client right along so redirects
- # can be set properly within the Rack application
- proxy_set_header Host $http_host;
- # we don't want nginx trying to do something clever with
- # redirects, we set the Host: header above already.
- proxy_redirect off;
- # Try to serve static files from nginx, no point in making an
- # *application* server like Unicorn/Rainbows! serve static files.
- # if (!-f $request_filename) {
- # # proxy_pass http://hello_app_server;
- # proxy_pass http://django;
- # break;
- # }
- set_by_lua $server_location 'return os.getenv("DUWAMISH_GUNICORN_PORT")';
- # try_files $server_location $uri @django;
- proxy_pass $server_location;
- }
- # location @django {
- # proxy_pass http://django;
- # }
- }
- }
- # mail {
- # # See sample authentication script at:
- # # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
- #
- # # auth_http localhost/auth.php;
- # # pop3_capabilities "TOP" "USER";
- # # imap_capabilities "IMAP4rev1" "UIDPLUS";
- #
- # server {
- # listen localhost:110;
- # protocol pop3;
- # }
- #
- # server {
- # listen localhost:143;
- # protocol imap;
- # proxy on;
- # }
- # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement