A
A
account-42017-03-12 05:39:37
Nginx
account-4, 2017-03-12 05:39:37

What proxy_http_version to set?

The documentation is very raw, but there is no experience.
I install an SSL certificate, and there will be such a config:

listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;

At the same time, in my current config (without SSL) is:
location / {
        proxy_pass http://localhost:3000;
        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;
    }

Do the current settings conflict with the ones I put after SSL? There after all http2, and now proxy_http_version 1.1?
Other settings to leave / what to add?

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