[groonga-dev,03947] Re: groonga-httpdのビルドオプションの指定方法

Back to archive index

HAYASHI Kentaro hayas****@clear*****
2016年 2月 21日 (日) 00:32:29 JST


林です。

On Sat, 20 Feb 2016 23:57:46 +0900
"kitai****@gmail*****" <kitai****@gmail*****> wrote:

> 初めまして、北市と言います。
> 
> groonga-httpdを使っているのですが、TLS接続もさせたいと思っています。
> (今はgroonga-httpdの前段に別にNginxを立ててそこでTLS終端させています。)
> 
> 自分でgroonga-httpdをビルドして、その時にNginxのngx_http_ssl_module(http://nginx.org/en/docs/http/ngx_http_ssl_module.html)も組み込むようにしたいなと思っているのですが、Nginxのビルドオプションはどこで指定するのでしょうか?

ちょっとややこしいですが、src/httpd/configure でカスタマイズするようになっています。
なので、ssl moduleを有効にしたい場合、以下のようにオプションを追加するとお望みのことができます。

diff --git a/src/httpd/configure b/src/httpd/configure
index 0143935..594431c 100755
--- a/src/httpd/configure
+++ b/src/httpd/configure
@@ -96,6 +96,7 @@ auto/configure \
   --with-ld-opt="${ld_opt}" \
   --with-http_stub_status_module \
   --with-http_v2_module \
+  --with-http_ssl_module \
   ${configure_args}
 exit_code=$?
 set -e

あとは、よくある./configure && makeでsslモジュールを有効にした状態でコンパイルするとよいです。

% /tmp/local/sbin/groonga-httpd -V
nginx version: nginx/1.9.10
built by gcc 5.3.1 20160205 (Debian 5.3.1-8) 
built with OpenSSL 1.0.2f  28 Jan 2016
TLS SNI support enabled <= 有効になった!
configure arguments: (省略)

きちんと有効にできていると、上記のようにその旨が表示されます。

これデフォルトで有効にしちゃったほうがいいですかねぇ。
-- 
HAYASHI Kentaro <hayas****@clear*****>




groonga-dev メーリングリストの案内
Back to archive index