Return-Path: X-Original-To: apmail-brooklyn-dev-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B727B10C89 for ; Mon, 8 Dec 2014 10:34:37 +0000 (UTC) Received: (qmail 51555 invoked by uid 500); 8 Dec 2014 10:34:37 -0000 Delivered-To: apmail-brooklyn-dev-archive@brooklyn.apache.org Received: (qmail 51523 invoked by uid 500); 8 Dec 2014 10:34:37 -0000 Mailing-List: contact dev-help@brooklyn.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.incubator.apache.org Delivered-To: mailing list dev@brooklyn.incubator.apache.org Received: (qmail 51512 invoked by uid 99); 8 Dec 2014 10:34:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 10:34:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 08 Dec 2014 10:34:14 +0000 Received: (qmail 48896 invoked by uid 99); 8 Dec 2014 10:34:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2014 10:34:12 +0000 Date: Mon, 8 Dec 2014 10:34:12 +0000 (UTC) From: "Alex Heneveld (JIRA)" To: dev@brooklyn.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (BROOKLYN-95) support switching nginx from SSL to non-SSL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BROOKLYN-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14237724#comment-14237724 ] Alex Heneveld edited comment on BROOKLYN-95 at 12/8/14 10:33 AM: ----------------------------------------------------------------- With https://github.com/apache/incubator-brooklyn/pull/373 you can now reset config with e.g. the following: {noformat} export NGINX_URL=http://localhost:8081/v1/applications/Y0T20UbB/entities/BXgSkgMR curl -v -H "Content-Type: application/json" \ -d '{ "proxy.ssl.config": { "certificateDestination": "/tmp/server.crt", "keyDestination": "/tmp/server.key" }, "proxy.https.port": "8453+" }' \ ${NGINX_URL}/config curl -v -H "Content-Type: application/json" \ -d '{ "proxy.https.port": "8453" }' \ ${NGINX_URL}/sensors curl -v -H "Content-Type: application/json" \ -d '{}' \ ${NGINX_URL}/effectors/restart {noformat} If you're content to use the default https port you can skip the sensor curl, and skip the sensor config (just setting {{proxy.ssl.config}}). It should then switch to https. was (Author: alex.heneveld): With https://github.com/apache/incubator-brooklyn/pull/373 you can now reset config with the following: {noformat} curl -v -H "Content-Type: application/json" \ -d '{ "proxy.ssl.config": { "certificateDestination": "/tmp/server.crt", "keyDestination": "/tmp/server.key" }, "proxy.https.port": "8453+" }' \ http://localhost:8081/v1/applications/joiteg98/entities/tyFyCgzM/config {noformat} And then a restart, and it will switch to https. (If it has already detected port 8443, you'll have to clear the sensor for the port also.) > support switching nginx from SSL to non-SSL > ------------------------------------------- > > Key: BROOKLYN-95 > URL: https://issues.apache.org/jira/browse/BROOKLYN-95 > Project: Brooklyn > Issue Type: New Feature > Reporter: Alex Heneveld > -- This message was sent by Atlassian JIRA (v6.3.4#6332)