I'm hosting a vueJS SPA on a nginx server over https (self-signed). But when making requests to the backend I'm getting an
Is there something I have to configure to make it work?
Without the nginx and just self-hosting vue over https with npm run serve, it works fine.
My nginx config looks like:ERR_CONNECTION_REFUSED
Code:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name exampleVue.com;
return 302 https://$server_name$request_uri;
}
server{
# SSL configuration
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
include snippets/self-signed.conf;
include snippets/ssl-params.conf;
root /var/www/client/pvapp-client/dist;
index index.html index.htm;
location / {
root /var/www/client/pvapp-client/dist;
try_files $uri $uri/ /index.html;
}
error_log /var/log/nginx/vue-app-error.log;
access_log /var/log/nginx/vue-app-access.log;
}
Is there something I have to configure to make it work?
Without the nginx and just self-hosting vue over https with npm run serve, it works fine.