keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.65k stars 2.21k forks source link

Blank Login Page #4910

Open Zedonboy opened 5 years ago

Zedonboy commented 5 years ago

Expected behavior

During Development, I see login page @"/keystone/siginin"

During production behind Nginx Proxy.... i get this blank Page

with 'qs' module not found" error @ the browser debugger console.

Please can you tell me whats wrong.... i have seen some solutions, but i cannot meddle with keystone npm package

Actual/Current behavior

Steps to reproduce the actual/current behavior

Environment

Software Version
Keystone
Node.js
Browser
autoboxer commented 5 years ago

@Zedonboy, were you able to figure out this issue?

Zedonboy commented 5 years ago

@autoboxer No.... (am working on my own custom signin page....)

abhijithvijayan commented 5 years ago

I didn't face any such issue

Zedonboy commented 5 years ago

@abhijithvijayan is your keystone behind a proxy (Nginx)?....

if there's no issue, let me see ur nginx config file

abhijithvijayan commented 5 years ago

@abhijithvijayan is your keystone behind a proxy (Nginx)?....

if there's no issue, let me see ur nginx config file

Yes, I use nginx. Here's my config.

server {
       listen 80;
       listen [::]:80;
       server_name example.com www.example.com;
       root /var/www/example.com;
       index index.html;

    location / {
        proxy_pass http://localhost:5000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }
}

I run the app at port 5000