From a8c047849228dae38285349211e0a82bf245b0d1 Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 13:27:09 -0800 Subject: [PATCH 1/9] Update Dockerfile move to stock nginx base image --- Dockerfile | 96 ++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 83 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 15163dc..d064265 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,24 +1,83 @@ -FROM openresty/openresty:1.29.2.4-alpine-fat@sha256:af355ebd6f01e580823b6718e8a2e39be3b45d9437fc92144e43ac72020f7461 -ENV DEBIAN_FRONTEND=noninteractive +ARG NGINX_FROM_IMAGE=nginx:mainline-alpine +FROM ${NGINX_FROM_IMAGE} AS builder +ARG ENABLED_MODULES=headers-more + +SHELL ["/bin/ash", "-exo", "pipefail", "-c"] + +RUN if [ "$ENABLED_MODULES" = "" ]; then \ + echo "No additional modules enabled, exiting"; \ + exit 1; \ + fi + +COPY ./ /modules/ + +RUN apk update \ + && apk add linux-headers openssl-dev pcre2-dev zlib-dev openssl abuild \ + musl-dev libxslt libxml2-utils make gcc unzip git \ + xz g++ coreutils curl \ + # allow abuild as a root user \ + && printf "#!/bin/sh\\nSETFATTR=true /usr/bin/abuild -F \"\$@\"\\n" > /usr/local/bin/abuild \ + && chmod +x /usr/local/bin/abuild \ + && git clone -b ${NGINX_VERSION}-${PKG_RELEASE} https://github.com/nginx/pkg-oss/ \ + && cd pkg-oss \ + && mkdir /tmp/packages \ + && for module in $ENABLED_MODULES; do \ + echo "Building $module for nginx-$NGINX_VERSION"; \ + if [ -d /modules/$module ]; then \ + echo "Building $module from user-supplied sources"; \ + # check if module sources file is there and not empty + if [ ! -s /modules/$module/source ]; then \ + echo "No source file for $module in modules/$module/source, exiting"; \ + exit 1; \ + fi; \ + # some modules require build dependencies + if [ -f /modules/$module/build-deps ]; then \ + echo "Installing $module build dependencies"; \ + apk update && apk add $(cat /modules/$module/build-deps | xargs); \ + fi; \ + # if a module has a build dependency that is not in a distro, provide a + # shell script to fetch/build/install those + # note that shared libraries produced as a result of this script will + # not be copied from the builder image to the main one so build static + if [ -x /modules/$module/prebuild ]; then \ + echo "Running prebuild script for $module"; \ + /modules/$module/prebuild; \ + fi; \ + /pkg-oss/build_module.sh -v $NGINX_VERSION -f -y -o /tmp/packages -n $module $(cat /modules/$module/source); \ + BUILT_MODULES="$BUILT_MODULES $(echo $module | tr '[A-Z]' '[a-z]' | tr -d '[/_\-\.\t ]')"; \ + elif make -C /pkg-oss/alpine list | grep -E "^$module\s+\d+" > /dev/null; then \ + echo "Building $module from pkg-oss sources"; \ + cd /pkg-oss/alpine; \ + make abuild-module-$module BASE_VERSION=$NGINX_VERSION NGINX_VERSION=$NGINX_VERSION; \ + apk add $(. ./abuild-module-$module/APKBUILD; echo $makedepends;); \ + make module-$module BASE_VERSION=$NGINX_VERSION NGINX_VERSION=$NGINX_VERSION; \ + find ~/packages -type f -name "*.apk" -exec mv -v {} /tmp/packages/ \;; \ + BUILT_MODULES="$BUILT_MODULES $module"; \ + else \ + echo "Don't know how to build $module module, exiting"; \ + exit 1; \ + fi; \ + done \ + && echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env + +FROM ${NGINX_FROM_IMAGE} +RUN --mount=type=bind,target=/tmp/packages/,source=/tmp/packages/,from=builder \ + . /tmp/packages/modules.env \ + && for module in $BUILT_MODULES; do \ + apk add --no-cache --allow-untrusted /tmp/packages/nginx-module-${module}-${NGINX_VERSION}*.apk; \ + done + +# added from original Dockerfile COPY deployment /kb/deployment RUN apk update && \ apk upgrade && \ apk add --no-cache \ - curl vim htop wget \ + bash curl vim htop wget \ pcre openssl zlib ca-certificates && \ rm -rf /var/cache/apk/* -RUN mkdir -p /etc/nginx/ssl /etc/nginx/conf.d /etc/nginx/sites-enabled /var/log/nginx && \ - touch /var/log/nginx/access.log /var/log/nginx/error.log - -RUN rm -f /usr/local/openresty/nginx/conf/nginx.conf \ - /etc/nginx/conf.d/default.conf - -RUN ln -s /usr/local/openresty/nginx/conf/mime.types /etc/nginx/mime.types - - RUN mkdir -p /kb/deployment/bin && \ wget -O /tmp/dockerize.tar.gz \ https://github.com/kbase/dockerize/raw/master/dockerize-linux-amd64-v0.6.1.tar.gz && \ @@ -26,4 +85,15 @@ RUN mkdir -p /kb/deployment/bin && \ mv /tmp/dockerize /kb/deployment/bin/ && \ rm /tmp/dockerize.tar.gz -ENTRYPOINT [ "/kb/deployment/bin/dockerize" ] \ No newline at end of file +RUN mkdir -p /etc/nginx/ssl /etc/nginx/conf.d /etc/nginx/sites-enabled /var/log/nginx && \ + touch /var/log/nginx/access.log /var/log/nginx/error.log + +RUN rm -f /usr/local/openresty/nginx/conf/nginx.conf \ + /etc/nginx/conf.d/default.conf + +##RUN ln -s /usr/local/openresty/nginx/conf/mime.types /etc/nginx/mime.types +RUN mkdir -p /usr/local/openresty/nginx/conf && \ + rm /etc/nginx/nginx.conf && \ + ln -s /usr/local/openresty/nginx/conf/nginx.conf /etc/nginx/nginx.conf + +ENTRYPOINT [ "/kb/deployment/bin/dockerize" ] From bd4a845cb1b30cf30076d734d23130649ceefdb0 Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 13:28:15 -0800 Subject: [PATCH 2/9] Update Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d064265..cf4d78c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# build portion taken from https://github.com/nginx/docker-nginx/blob/master/modules/Dockerfile.alpine + ARG NGINX_FROM_IMAGE=nginx:mainline-alpine FROM ${NGINX_FROM_IMAGE} AS builder From 586cbc02f094d69af7849d9b7a36df1e8281b9cc Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 13:29:01 -0800 Subject: [PATCH 3/9] Update openresty.conf.templ Add module directive to load headers-more --- deployment/conf/.templates/openresty.conf.templ | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/conf/.templates/openresty.conf.templ b/deployment/conf/.templates/openresty.conf.templ index 555fe2e..3576e82 100644 --- a/deployment/conf/.templates/openresty.conf.templ +++ b/deployment/conf/.templates/openresty.conf.templ @@ -5,6 +5,8 @@ error_log /dev/stdout {{ default .Env.loglevel "info" }}; worker_processes auto; pid /run/nginx.pid; +load_module modules/ngx_http_headers_more_filter_module.so; + events { worker_connections 768; # multi_accept on; From a2d587c8585a613f6ebf26fdd4d9fd4eae77e5bb Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 13:57:38 -0800 Subject: [PATCH 4/9] Update managed_build.yaml update workflow to point to an available parent --- .github/workflows/managed_build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/managed_build.yaml b/.github/workflows/managed_build.yaml index 36c2ade..6558a79 100644 --- a/.github/workflows/managed_build.yaml +++ b/.github/workflows/managed_build.yaml @@ -9,7 +9,7 @@ on: types: [published] jobs: build-publish-scan: - uses: BERDataLakehouse/.github/.github/workflows/build_publish_scan.yaml@main + uses: kbase-infra/.github/.github/workflows/build_publish_scan.yaml@main permissions: contents: read packages: write From a41c8d80dc6ea4d569f95a9b78ddeab9f7d7282f Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 16:04:41 -0800 Subject: [PATCH 5/9] Update Dockerfile changes suggested by AI --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf4d78c..0450e93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ -# build portion taken from https://github.com/nginx/docker-nginx/blob/master/modules/Dockerfile.alpine +# syntax=docker/dockerfile:1 -ARG NGINX_FROM_IMAGE=nginx:mainline-alpine +# build nginx module portion taken from https://github.com/nginx/docker-nginx/blob/master/modules/Dockerfile.alpine + +ARG NGINX_FROM_IMAGE=nginx:stable-alpine3.24@sha256:3bc3836dc0be3b811f238210360bf8e7ca8a2d0effdae46160bf1f3578710051 FROM ${NGINX_FROM_IMAGE} AS builder ARG ENABLED_MODULES=headers-more From 76cb6486cf84232247d8a9f0b22987aa8cf52abb Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 16:05:18 -0800 Subject: [PATCH 6/9] Delete hooks directory Unnecessary delete suggested by AI --- hooks/build | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 hooks/build diff --git a/hooks/build b/hooks/build deleted file mode 100755 index e8385d6..0000000 --- a/hooks/build +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# $IMAGE_NAME var is injected into the build so the tag is correct. - -echo "Build hook running" -echo "IMAGE_NAME = ${IMAGE_NAME}" -echo "DOCKER_REPO = ${DOCKER_REPO}" -echo "CACHE_TAG = ${CACHE_TAG}" -export BRANCH=${TRAVIS_BRANCH:-`git symbolic-ref --short HEAD`} - -export DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` -export COMMIT=${TRAVIS_COMMIT:-`git rev-parse --short HEAD`} -docker build --build-arg BUILD_DATE=$DATE \ - --build-arg VCS_REF=$COMMIT \ - --build-arg BRANCH=$BRANCH \ - -t ${IMAGE_NAME} . && \ -echo "Built and tagged ${IMAGE_NAME}" From 9df28ff9279544085d53b568f472ab0cbaab68ae Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 16:06:19 -0800 Subject: [PATCH 7/9] Update openresty.conf.templ Use full path to modules as suggested by AI --- deployment/conf/.templates/openresty.conf.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/conf/.templates/openresty.conf.templ b/deployment/conf/.templates/openresty.conf.templ index 3576e82..b94e5ab 100644 --- a/deployment/conf/.templates/openresty.conf.templ +++ b/deployment/conf/.templates/openresty.conf.templ @@ -5,7 +5,7 @@ error_log /dev/stdout {{ default .Env.loglevel "info" }}; worker_processes auto; pid /run/nginx.pid; -load_module modules/ngx_http_headers_more_filter_module.so; +load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so; events { worker_connections 768; From 8b5503bc82aad9bb510d81213db327ecd6371dab Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 16:08:58 -0800 Subject: [PATCH 8/9] Delete deployment/conf/.templates/minikb-narrative.templ Delete unused file suggested by AI --- .../conf/.templates/minikb-narrative.templ | 298 ------------------ 1 file changed, 298 deletions(-) delete mode 100644 deployment/conf/.templates/minikb-narrative.templ diff --git a/deployment/conf/.templates/minikb-narrative.templ b/deployment/conf/.templates/minikb-narrative.templ deleted file mode 100644 index 9a7c08d..0000000 --- a/deployment/conf/.templates/minikb-narrative.templ +++ /dev/null @@ -1,298 +0,0 @@ -# Setup a DNS resolver in the http scope, not the server scope -resolver {{ default .Env.resolver "127.0.0.11" }} valid=5s ipv6=off; - -server { - root /kb/deployment; - index home.html home.shtml; - - # Name of this site - server_name {{ default .Env.server_name "localhost" }}; - - location / { - root /kb/deployment/services/kbase-ui; - index index.html; - #ssi on; - ssi_silent_errors off; - allow all; - - #auth_basic "KBase Dev Website"; - #auth_basic_user_file htpasswd; - return 301 https://ci.kbase.us$request_uri; - } - - # This is for letsencrypt - location ^~ /.well-known { - root /certs/; - allow all; - } - - # Dynamic proxy manager - location ^~ /proxy_map { - default_type 'application/json'; - allow 127.0.0.1; - allow 172.17.0.0/16; - deny all; - - set $uri_base '/proxy_map'; - content_by_lua 'proxymgr:set_proxy()'; - } - - location ^~ /narrative_shutdown { - allow 127.0.0.1; - allow 172.17.0.0/16; - default_type 'application/json'; - - set $uri_base '/proxy_map'; - content_by_lua 'proxymgr:narrative_shutdown()'; - } - - location ^~ /narrative/ { - default_type 'text/plain'; - error_page 401 /index.html; - - set $target ''; - - access_by_lua ' - proxymgr:use_proxy() - '; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Server $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-NginX-Proxy true; - proxy_pass http://$target; - proxy_redirect off; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_read_timeout 86400; - } - location ^~ /data_source_config.json { - set $proxyhost narrative_version; - proxy_pass http://$proxyhost:80/data_source_config.json; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - location ^~ /(narrative_version) { - proxy_pass http://$1:80/narrative_version; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # Dynamic service rule. This usees rancher DNS names to redirect - location ~ /dynserv/([^/\.\:]+)/(.*) { - proxy_pass http://$1:5000/; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # Anything under services gets proxied to the servicename port 80 - location ~ /services/([^/\.\:]+)/?(.*) { - proxy_pass http://$1:8080/$2; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # Grandfathered entry for kbase-ui as root - location ~ /?(.*) { - proxy_pass http://kbase-ui:8080/$1; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } -} - -# Proxy for the nginx remote api -server { - listen 127.0.0.1:65000; - ssl off; - - auth_basic_user_file /etc/nginx/htpasswd; - location / { - proxy_pass http://unix:/var/run/docker.sock:/; - } -} - -# Proxy for globus online - non-blocking lua code doesn't handle https, so -# we build an internal proxy to the Globus Nexus API endpoint -server { - listen 127.0.0.1:65001; - - location / { - proxy_pass https://nexus.api.globusonline.org/; - proxy_set_header Host nexus.api.globusonline.org; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } -} - -# Proxy added to support narrative -server { - listen 127.0.0.1:65002; - location ~ /(.*) { - resolver 8.8.8.8 valid=5s; - set $auth "127.0.0.1/services/auth"; - proxy_pass https://$auth/$1; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_intercept_errors on; - error_page 301 302 307 = @handle_redirect; - } - location @handle_redirect { - resolver 8.8.8.8 valid=5s; - set $saved_redirect_loc '$upstream_http_location'; - proxy_pass $saved_redirect_loc; - } -} - - -# Main HTTPS server. This handles services and the narrative plus other stuff -# -# XXX the rate below is 1r/m because that's the slowest that this version of nginx will allow -# there is a patch to support tth which would allow one request every 16 minutes -# may no longer need this -# limit_req_zone $1 zone=shockapi:10m rate=1r/m; - -server { - listen 443; - server_name {{ default .Env.server_name "localhost" }} - - # this resolver is the internal rancher resolver - # see https://github.com/rancher/rancher/issues/7691#issuecomment-277635645 - resolver {{ default .Env.resolver "127.0.0.11" }} valid=5s ipv6=off; - - # taken from next-www - client_max_body_size 100000m; - client_body_temp_path /tmp 1 2; - proxy_max_temp_file_size 0; - proxy_headers_hash_max_size 4096; - proxy_headers_hash_bucket_size 4096; - # added kkeller 30sep2015 for kbase-2777 - proxy_request_buffering off; - - ssl on; - # Letsencrypt generated certs - ssl_certificate {{ default .Env.ssl_certificate "/kb/deployment/conf/localhost.crt" }}; - ssl_certificate_key {{ default .Env.ssl_certificate_key "/kb/deployment/conf/localhost.key" }}; - - ssl_session_timeout 5m; - #ssl_protocols TLSv1; - #ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; - ssl_prefer_server_ciphers on; - - root /kb/deployment; - index home.html home.shtml; - - access_by_lua_block { - ngx.header["X-kbaseuser"] = proxymgr:get_session() - return - } - - location ^~ /bad_request { - internal; - content_by_lua ' - ngx.log(ngx.ERR, "badrequest") - '; - - return 404; - } - - location ^~ /proxy_map { - default_type 'application/json'; - allow 127.0.0.1; - allow 172.17.0.0/16; - deny all; - - set $uri_base '/proxy_map'; - content_by_lua 'proxymgr:set_proxy()'; - - } - # Shutdown utility - location ^~ /narrative_shutdown { - default_type 'application/json'; - allow 127.0.0.1; - allow 172.17.0.0/16; - - set $uri_base '/narrative_shutdown'; - content_by_lua 'proxymgr:narrative_shutdown()'; - - } - - # Narrative redirect rule - location ^~ /narrative/ { - default_type 'text/plain'; - error_page 401 /index.html; - set $target ''; - - access_by_lua ' - proxymgr:use_proxy() - '; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-Server $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-NginX-Proxy true; - proxy_pass http://$target; - proxy_redirect off; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_read_timeout 86400; - } - - location ^~ /data_source_config.json { - set $proxyhost narrative_version; - proxy_pass http://$proxyhost:80/data_source_config.json; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - location ^~ /(narrative_version) { - proxy_pass http://$1:80/narrative_version; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # Dynamic service rule. This usees rancher DNS names to redirect - location ~ /dynserv/([^/\.\:]+)/(.*) { - proxy_pass http://$1:5000/; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # Anything under services gets proxied to the servicename port 80 - location ~ /services/([^/\.\:]+)/?(.*) { - proxy_pass http://$1:8080/$2; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # Grandfathered entry for kbase-ui as root - location ~ /?(.*) { - set $kbaseui kbase-ui; - proxy_pass http://$kbaseui/$1; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header Host $http_host; - proxy_set_header X-Forwarded-Proto $scheme; - } - -} -# End of https server block - From fefa8cd37afbb275ef74f83934fcf84830a4dbd3 Mon Sep 17 00:00:00 2001 From: kkellerlbl Date: Thu, 19 Nov 2026 16:09:44 -0800 Subject: [PATCH 9/9] Update openresty.conf.templ Changes suggested by AI --- deployment/conf/.templates/openresty.conf.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/conf/.templates/openresty.conf.templ b/deployment/conf/.templates/openresty.conf.templ index b94e5ab..771c6a5 100644 --- a/deployment/conf/.templates/openresty.conf.templ +++ b/deployment/conf/.templates/openresty.conf.templ @@ -33,7 +33,7 @@ http { ## # Dropping SSLv3, ref: POODLE. We may need to drop TLSv1 and 1.1 in the future as well. - ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-RSA-CAMELLIA128-SHA256'; ssl_prefer_server_ciphers on;