I tried creating apps with each of these configurations (With create-nuxt-app, but I tried without it and I had the same issue after adding a simple error page and a nuxt link to a random page to check the error page): no custom server framework, no custom UI framework, universal, no axios, no eslint, npm express, bootstrap, universal, no axios, no eslint, npm
I need to specify that I tried with https only.
After I start the dev server with npm run dev and try to go to the dev server address I see the page and it always refreshes with the following server logs:
And this chrome console output:
EDIT: I just tried connecting with the IP and port, not the domain, and it now works perfectly. I think the problem is from the nginx reverse proxy. Here is my configuration:
server {
listen 443 ssl;
ssl on;
ssl_certificate /etc/nginx/ssl/api/ssl.pem;
ssl_certificate_key /etc/nginx/ssl/api/ssl.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
ssl_prefer_server_ciphers on;
server_name beta.example.com;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass https://localhost:8443;
proxy_read_timeout 90;
proxy_redirect https://localhost:8443 https://beta.example.com;
}
}
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2354">#c2354</a>)</em></sub></div>