W
W
WebDev2018-12-20 11:08:37
Vue.js
WebDev, 2018-12-20 11:08:37

Should I serve nuxt static via nginx?

Project on nuxt.
It runs on port 3000, I proxy all requests through nginx

location / {
                proxy_set_header   X-Forwarded-For $remote_addr;
                proxy_set_header   Host $http_host;
                proxy_pass         http://127.0.0.1:3000;
        }

Is it possible (and should it) be handled to give static through nginx? And if so, how?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question