Closed cyberorg closed 4 years ago
Check this file after installation of kolibri-server :
/etc/nginx/conf.d/kolibri.conf -> /etc/kolibri/dist/nginx.conf
This is on MSS already.
@cyberorg Why is this needed? On NUC, MSS everything seems configured fine with the default kolibri-server package. On Pi, we are not yet using kolibri-server. We may do so when we have native package released.
even on pi at least this change will be needed:
/home/mssadmin/.kolibri/options.ini
URL_PATH_PREFIX = kolibri/
This is needed so that access to kolibri is done using mss.server/kolibri instead of mss.server:8080/kolibri,
Using nginx proxy will allow the use of kolibri content by moodle without kolibri running.
Interesting, will have to check how I have been accessing it on the MSS. Could it be possible that Kolibri is accessible simultaneously via port :8080 and kolibri/ ?
yes, 8080 and socket are both available.
installserver/mss/nginx-kolibri.tar.xz has 2 configuration files needed.
[Deployment]
URL_PATH_PREFIX = kolibri/
HTTP_PORT = 80
Going by the Kolibri documentation, it should have worked. I tried the above in options.ini and by commenting the above directives in mss.conf but it did not work.
Using nginx proxy will allow the use of kolibri content by moodle without kolibri running.
Needs to be validated for multiple content types such as HTML5, pdf, epub, etc . Will it work by directly referring the content's link/url or will they need to be embedded using the Kolibri render iframe?
HTTP_PORT = 80 Port 80 is in use by nginx so that wont work.
The following is needed in nginx config
location /kolibri/static { alias /home/mssadmin/.kolibri/static; expires 365d; add_header Cache-Control "public"; } location /kolibri/content { alias /home/mssadmin/.kolibri/content; expires 365d; add_header Cache-Control "public"; } location /kolibri { include uwsgi_params; uwsgi_pass unix://tmp/kolibri_uwsgi.sock; error_page 502 @error502; }
for non kolibri-server
and in /home/mssadmin/.kolibri/options.ini
URL_PATH_PREFIX = kolibri/