Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

updating over port 80 returns uncaught TypeError #74

Open
mandric opened this issue Mar 5, 2014 · 0 comments
Open

updating over port 80 returns uncaught TypeError #74

mandric opened this issue Mar 5, 2014 · 0 comments
Labels

Comments

@mandric
Copy link
Member

mandric commented Mar 5, 2014

Updating an app from the dashboard fails...

screen shot 2014-03-05 at 12 44 24 pm

I know this might depend on the proxy config so including that here also.

daemon off;
user nobody;
worker_processes 2;

events {
    worker_connections 1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile           on;
    keepalive_timeout  65;
    client_max_body_size 10M;                                                                                                                                                                          

    upstream concierge {
        server localhost:280;
    }

    upstream couchdb {
        server localhost:5984;
    }

    server {
        listen       80;
        listen       443 ssl;
        server_name  localhost;

        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 *;
        gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript multipart/related;

        ssl_certificate         /srv/settings/medic-core/nginx/private/default.crt;
        ssl_certificate_key     /srv/settings/medic-core/nginx/private/default.key; 
        ssl_prefer_server_ciphers   on;
        ssl_session_timeout         10m;
        ssl_session_cache           shared:SSL:5m;
        ssl_ciphers                 RC4:HIGH:!aNULL:!MD5;
        ssl_protocols               SSLv3 TLSv1 TLSv1.1 TLSv1.2;

        location / {
            rewrite ^/dashboard$ /dashboard/ redirect;
            error_page 502 503 504 = @fallback;
            proxy_pass              http://concierge;
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        }

        location @fallback {
            proxy_pass              http://couchdb;
            proxy_set_header        Host            $host;
            proxy_set_header        X-Real-IP       $remote_addr;
            proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root html;
        }

    }

}
@mandric mandric added the bug label Mar 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant