garden20 / dashboard

Provides a welcome page, a top menu bar, and app installation and management for Garden apps.
4 stars 7 forks source link

updating over port 80 returns uncaught TypeError #74

Open mandric opened 10 years ago

mandric commented 10 years ago

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;
        }

    }

}