-- Setting up SSL
Hi Peter,
If you are running Yioop under a separate web server you would do the SSL configuration in that web server. If you are using Yioop as its own web server,
then you can define a server context in the file src/configs/LocalConfig.php
(you have to create if it doesn't already exist). For example, this file might contain:
<?php
nsdefine('SERVER_CONTEXT', ['ssl' => [
'local_cert' => '/etc/ssl/certs/my-cert.crt',
'cafile' => '/etc/ssl/certs/cert_authority.crt',
'capath' => '/etc/ssl/certs',
'local_pk' => '/etc/ssl/private/my-cert.key',
'allow_self_signed' => false,
'verify_peer' => false,
],
'SERVER_NAME' => 'my-server.com',
'SERVER_SOFTWARE' => 'My Server Software',
'SERVER_ADMIN' => me@myself-and-I.org',
'CONNECTION_TIMEOUT' => 10,
]);
Given the above you could then start Yioop on port 443.
Hi Peter,
If you are running Yioop under a separate web server you would do the SSL configuration in that web server. If you are using Yioop as its own web server,
then you can define a server context in the file src/configs/LocalConfig.php
(you have to create if it doesn't already exist). For example, this file might contain:
<?php
nsdefine('SERVER_CONTEXT', ['ssl' => [
'local_cert' => '/etc/ssl/certs/my-cert.crt',
'cafile' => '/etc/ssl/certs/cert_authority.crt',
'capath' => '/etc/ssl/certs',
'local_pk' => '/etc/ssl/private/my-cert.key',
'allow_self_signed' => false,
'verify_peer' => false,
],
'SERVER_NAME' => 'my-server.com',
'SERVER_SOFTWARE' => 'My Server Software',
'SERVER_ADMIN' => me@myself-and-I.org',
'CONNECTION_TIMEOUT' => 10,
]);
Given the above you could then start Yioop on port 443.