Skip to content

No functional UI after fresh install #288

totokaka opened this Issue Feb 8, 2014 · 2 comments

1 participant

totokaka commented Feb 8, 2014

I've just installed subway, for the first time, on my VPS, and it doesn't work as expected.
I have the same problems when launching it as development and production.

When I open up the page I see something that might be this:
for a split second(that's why I can't be completely sure it is that), before this shows up, and stays there:
In this state the UI does not respond in any way, no clickable things, no results when entering text in the box. The "Send" button doesn't even display a click animation when clicked.

At the same time I get this in console:

Can't resolve image path: ../img/glyphicons-halflings.png
Can't resolve image path: ../img/glyphicons-halflings-white.png
Can't resolve image path: /assets/images/join.png
Can't resolve image path: /assets/images/part.png
Can't resolve image path: /assets/images/topic.png
Can't resolve image path: /assets/images/active.png
Can't resolve image path: /assets/images/idle.png

I asked at IRC, and _46bit reported he have had the same issue, but that he didn't remember how he fixed it.

totokaka commented Feb 8, 2014

I just realized I only tried to access it through nginx. When accessing it directly it worked.
How is my nginx config supposed to look to get this to work?

totokaka commented Feb 8, 2014

Ok, It turns out this was because I hadn't configured nginx to proxy websockets.
This is the config I now use:

upstream subway {
        server localhost:14858;

server {
        listen          80;
        server_name     irc.hidd.en;

        location / {
                proxy_pass http://subway;

                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";

                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $proxy_host;
                proxy_set_header X-NginX-Proxy true;

        location /assets {
                alias /srv/http/;

This is what got me on the right track: #134 (comment)

@totokaka totokaka closed this Feb 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.