NGINX proxy in front of the Docker container.errors

follwing the directions here: Running other websites on the same machine as Discourse

Have the following errors:

nginx: [warn] invalid parameter “spdy”: ngx_http_spdy_module was superseded by ngx_http_v2_module in /etc/nginx/conf.d/discourse.conf:9
nginx: [warn] invalid parameter “spdy”: ngx_http_spdy_module was superseded by ngx_http_v2_module in /etc/nginx/conf.d/discourse.conf:9
nginx: [warn] invalid directive “spdy_headers_comp”: ngx_http_spdy_module was superseded by ngx_http_v2_module in /etc/nginx/conf.d/discourse.conf:20
nginx: [warn] invalid directive “spdy_keepalive_timeout”: ngx_http_spdy_module was superseded by ngx_http_v2_module in /etc/nginx/conf.d/discourse.conf:21
nginx: [emerg] BIO_new_file("/var/discourse/shared/standalone/ssl/ssl.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(’/var/discourse/shared/standalone/ssl/ssl.crt’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

Any tips on fixing this?
Thanks.

More info:
amazon EC2
ubuntu 16.04
nginx installed via easyengine: https://easyengine.io/

Looks like the problem is on this file

Yes since it doesn’t exist. And the issue of spdy value html2.0
Too bad I don’t know what to do about it

I think that you need to replace spdy with http2 in /etc/nginx/conf.d/discourse.conf.
And install a certificate :wink: it is simple with the letsencrypt tool (aka certbot).

btw, I have updated that wiki to support http2 instead of deprecated spdy.

1 Like