From 4b48a823205b6adf58014c7445d71e5cb8c44382 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Tue, 11 Aug 2015 17:17:38 +0200 Subject: [PATCH] =?UTF-8?q?tmpl/nginx-nebula.conf:=20Ajout=20du=20param?= =?UTF-8?q?=C3=A8trage=20pour=20le=20support=20HTTPS.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Afin de pouvoir bénéficier du HTTPS et de VNC on fait écouter sunstone sur l'IP du serveur plutôt que sur 127.0.0.1 ainsi websocketify écoute également sur l'IP et on a toujours accès au port VNC. Cette méthode marche car le reverse proxy est sur la même machine. Sunstone reste accessible sur le port 9000 aux IP listées dans ip_ssh_eth0 Sunstone en https est lui disponible pour les IP listées dans ip_admin_eth0. fixes #9081 @1h00 --- tmpl/nginx-nebula.conf | 3 +-- tmpl/sunstone-server.conf | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tmpl/nginx-nebula.conf b/tmpl/nginx-nebula.conf index 10e9cd5..fe3bc7d 100644 --- a/tmpl/nginx-nebula.conf +++ b/tmpl/nginx-nebula.conf @@ -1,7 +1,6 @@ #### OpenNebula Sunstone upstream upstream sunstone { - server 127.0.0.1:%%port_sunstone; -# server %%adresse_ip_eth0:%%port_sunstone; + server %%adresse_ip_eth0:%%port_sunstone; } #### cloudserver.org HTTP virtual host diff --git a/tmpl/sunstone-server.conf b/tmpl/sunstone-server.conf index bba3ce3..afb2dbe 100644 --- a/tmpl/sunstone-server.conf +++ b/tmpl/sunstone-server.conf @@ -28,8 +28,8 @@ # Server Configuration # -:host: 127.0.0.1 -#:host: %%ip_sunstone +#:host: 127.0.0.1 +:host: %%ip_sunstone :port: %%port_sunstone # Place where to store sessions, this value can be memory or memcache