I've install Odoo 10 behind the apache proxy with this configuration
<VirtualHost *:81> ServerName localhost ServerAlias localhost ServerAdmin localhost LogLevel debug ErrorLog "logs/geodatamanagement.error.log" CustomLog "logs/geodatamanagement.access.log" combined Redirect / https://localhost </VirtualHost> <VirtualHost *:443> ServerName localhost ServerAlias localhost ServerAdmin localhost LogLevel warn ErrorLog "logs/geodatamanagement.https.error.log" CustomLog "logs/geodatamanagement.https.access.log" combined SSLEngine on SSLProxyEngine on SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKeyFile "conf/ssl.key/server.key" ProxyPreserveHost on ProxyPass / http://localhost:8069/ retry=0 ProxyPassReverse / http://localhost:8069/ </VirtualHost>
My public ip is 189.XXX.XX.XXX
I have access from https://189.XXX.XX.XXX but the code autogenerated to integrate the livechat using the javascript
<link rel="stylesheet" href="http://189.XXX.XX.XXX:81/im_livechat/external_lib.css"/> <script type="text/javascript" src="http://189.XXX.XX.XXX:81/im_livechat/external_lib.js"></script> <script type="text/javascript" src="http://189.XXX.XX.XXX:81/im_livechat/loader/8"></script>
Also if change on https://189.XXX.XX.XXX/im_livechat/loader/8 the code remains
document.addEventListener("DOMContentLoaded", function(event) {
odoo.define('web.session', function (require) {
var Session = require('web.Session');
var modules = odoo._modules;
return new Session(undefined, "http://188.xxx.xxx.xxx:81", {modules:modules, use_cors: false});
});
odoo.define('im_livechat.livesupport', function (require) {
});
});
Any suggest ?