From 485a54e102aef215952b4728773d46a95b76d1d7 Mon Sep 17 00:00:00 2001 From: torn Date: Tue, 24 Jan 2017 17:25:27 +0100 Subject: [PATCH] Update cable.conf --- cable.conf | 46 +++++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/cable.conf b/cable.conf index 2977c67..1473057 100644 --- a/cable.conf +++ b/cable.conf @@ -1,21 +1,8 @@ - - ServerName cable-service-ca.cable.im - SSLEngine On +### +### Apache configuration file for Signal-Server +### - # Su cable-service-ca.cable.im serve un certificato valido (letsencrypt). - # È l'hostname a cui si connette Twilio per ottenere le informazioni - # necessarie a fare la verifica del numero tramite chiamata vocale. - - SSLCertificateFile /etc/letsencrypt/live/cable-service-ca.cable.im/cert.pem - SSLCertificateKeyFile /etc/letsencrypt/live/cable-service-ca.cable.im/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf - SSLCertificateChainFile /etc/letsencrypt/live/cable-service-ca.cable.im/chain.pem - - ProxyVia On - ProxyPreserveHost On - ProxyPass / http://127.0.0.1:4242/ - ProxyPassReverse / http://127.0.0.1:4242/ - +### VirtualHost for the main service: ServerName cable-service.cable.im @@ -40,6 +27,31 @@ ProxyPassReverse / ws://127.0.0.1:4242/ + +### VirtualHost for letting Twilio call back: + + + ServerName cable-service-ca.cable.im + SSLEngine On + + # Su cable-service-ca.cable.im serve un certificato valido (letsencrypt). + # È l'hostname a cui si connette Twilio per ottenere le informazioni + # necessarie a fare la verifica del numero tramite chiamata vocale. + + SSLCertificateFile /etc/letsencrypt/live/cable-service-ca.cable.im/cert.pem + SSLCertificateKeyFile /etc/letsencrypt/live/cable-service-ca.cable.im/privkey.pem + Include /etc/letsencrypt/options-ssl-apache.conf + SSLCertificateChainFile /etc/letsencrypt/live/cable-service-ca.cable.im/chain.pem + + ProxyVia On + ProxyPreserveHost On + ProxyPass / http://127.0.0.1:4242/ + ProxyPassReverse / http://127.0.0.1:4242/ + + + +### Giphy proxy: + ServerName giphy.com ServerAlias *.giphy.com