mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
Merge branch 'master' of https://github.com/iiab/iiab
This commit is contained in:
commit
5ded219b74
5 changed files with 113 additions and 3 deletions
53
roles/httpd/files/html/html/credits.html
Executable file
53
roles/httpd/files/html/html/credits.html
Executable file
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" type="text/css" media="all" href="xs-portal.css" />
|
||||
<HTML>
|
||||
<HEAD>
|
||||
|
||||
<!-- THIS IS THE MASTER COPY. SECONDARY COPIES MAY ALSO EXIST WITHIN:
|
||||
https://github.com/iiab/iiab-menu/blob/master/menu-files/html/credits.html
|
||||
https://github.com/iiab/iiab-admin-console/blob/master/roles/console/files/index.html -->
|
||||
|
||||
<TITLE>Credits</TITLE>
|
||||
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<h1>Internet-in-a-Box Credits</h1>
|
||||
|
||||
Internet-in-a-Box (formerly known as XSCE School Server) includes a variety of educational content and applications which are attributed as follows:<br><br>
|
||||
|
||||
All Wikipedia content is available for free at <a href="https://www.wikipedia.org/">www.wikipedia.org</a>.<br>
|
||||
All other Wikimedia content is available for free via links at <a href="https://www.wikimedia.org/">www.wikimedia.org</a>.<br>
|
||||
All Khan Academy content is available for free at <a href="https://www.khanacademy.org/">www.khanacademy.org</a>.<br>
|
||||
All CK-12 content is available for free at <a href="https://www.ck12.org/">www.ck12.org</a>.<br>
|
||||
All PhET Interactive Simulations content is available for free at <a href="https://phet.colorado.edu">phet.colorado.edu</a>.<br>
|
||||
All MedLine content is available for free at <a href="https://medlineplus.gov/">medlineplus.gov</a>.<br>
|
||||
All Hesperian content is available for free at <a href="https://hesperian.org/">hesperian.org</a>.<br>
|
||||
Arabic translations of Hesperian content were done by Arab Resource Collective and are available for free at <a href="http://www.mawared.org">mawared.org</a>.<br>
|
||||
All Gutenberg content is available for free at <a href="https://www.gutenberg.org/">www.gutenberg.org</a>.<br>
|
||||
All OLPC content is available for free at <a href="http://wiki.laptop.org/go/Collections">wiki.laptop.org</a>.<br>
|
||||
All MIT Scratch content is available for free at <a href="https://scratch.mit.edu">scratch.mit.edu</a>.<br>
|
||||
All UNESCO's IICBA content is available for free at <a href="http://www.iicba.unesco.org/?q=elibrary">www.iicba.unesco.org/</a>.<br>
|
||||
All Math Expression content is available for free at <a href="https://www.mathexpression.com/">www.mathexpression.com</a>.<br>
|
||||
All Music Theory content is available for free at <a href="https://www.musictheory.net/">www.musictheory.net</a>.<br>
|
||||
All HealthPhone content is available for free at <a href="http://www.healthphone.org/">www.healthphone.org</a>.<br>
|
||||
All Centers for Disease Control content is available for free at <a href="https://www.cdc.gov/">www.cdc.gov</a>.<br>
|
||||
All Global Emergency Medicine Wiki content is available for free at <a href="https://wikem.org/wiki/Main_Page">wikem.org/wiki/Main_Page</a>.<br><br>
|
||||
|
||||
Internet-in-a-Box also includes the work of content aggregators which we gratefully acknowledge:<br><br>
|
||||
|
||||
RACHEL is a curation of selected offline content at <a href="http://oer2go.org/">oer2go.org</a>.<br>
|
||||
Kiwix is a ZIM server and repository of Wikimedia and other content in a compressed ZIM file format at <a href="http://www.kiwix.org/">www.kiwix.org</a>.<br>
|
||||
KA Lite is a server and repository of Khan Academy content in various languages at <a href="https://learningequality.org/ka-lite/">learningequality.org/ka-lite</a>.<br><br>
|
||||
|
||||
Internet-in-a-Box also contains a number of applications each of which has its own attribution information, which is included.<br><br>
|
||||
|
||||
This Internet-in-a-Box distribution resides at <a href="https://github.com/iiab">github.com/iiab</a>.<br><br>
|
||||
|
||||
It is licensed under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.<br><br>
|
||||
|
||||
Licensing information may be found at <a href="https://github.com/iiab/iiab/blob/master/LICENSE.md">github.com/iiab/iiab/blob/master/LICENSE.md</a>.<br>
|
||||
|
||||
</BODY>
|
||||
<script type="text/javascript" src="incl/xs-portal.js"></script>
|
||||
</HTML>
|
|
@ -1,4 +1,4 @@
|
|||
phpmyadmin_install: False
|
||||
phpmyadmin_enabled: False
|
||||
phpmyadmin_name: "phpMyAdmin-4.8.2-all-languages"
|
||||
phpmyadmin_name: "phpMyAdmin-4.8.3-all-languages"
|
||||
phpmyadmin_name_zip: "{{ phpmyadmin_name }}.zip"
|
||||
|
|
|
@ -160,6 +160,13 @@
|
|||
# chdir: "{{ sugarizer_location }}/sugarizer/server"
|
||||
# when: internet_available and is_F18 and not node_modules_exists
|
||||
|
||||
# Add a nodejs express function that appends a prefix to urls
|
||||
- name: Install path prefix proxy
|
||||
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
||||
args:
|
||||
chdir: "{{ sugarizer_location }}/{{ sugarizer_server_version }}"
|
||||
when: internet_available
|
||||
|
||||
# 5. PLACE CONFIG FILES
|
||||
|
||||
- name: Configure sugarizer.service (systemd), sugarizer.conf (Apache) and sugarizer.ini
|
||||
|
@ -173,6 +180,7 @@
|
|||
- { src: 'sugarizer.ini', dest: '{{ sugarizer_location }}/{{ sugarizer_server_version }}/env/sugarizer.ini', mode: '0644' }
|
||||
- { src: 'sugarizer.conf', dest: '/etc/apache2/sites-available', mode: '0644' }
|
||||
- { src: 'sugarizer.service.j2', dest: '/etc/systemd/system/sugarizer.service', mode: '0644' }
|
||||
- { src: 'sugarizer.js', dest: '/opt/iiab/sugarizer-server', mode: '0644' }
|
||||
|
||||
- name: Create symlink for short URL http://box/sugarizer
|
||||
file:
|
||||
|
@ -189,6 +197,12 @@
|
|||
state: restarted
|
||||
daemon_reload: yes
|
||||
when: sugarizer_enabled
|
||||
|
||||
- name: Restart Apache so http://box/sugarizer works (not just http://box:8089)
|
||||
systemd:
|
||||
name: apache2
|
||||
state: restarted
|
||||
when: sugarizer_enabled
|
||||
|
||||
- name: 'Disable+stop systemd service if sugarizer_enabled: False'
|
||||
systemd:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
RewriteEngine on
|
||||
RewriteRule ^/sugarizer(.*)$ http://localhost:8089$1 [PT]
|
||||
ProxyPass /sugarizer http://localhost:8089/sugarizer
|
||||
ProxyPassReverse /sugarizer http://localhost:8089/sugarizer
|
||||
|
|
43
roles/sugarizer/templates/sugarizer.js
Normal file
43
roles/sugarizer/templates/sugarizer.js
Normal file
|
@ -0,0 +1,43 @@
|
|||
// require files
|
||||
var express = require('express'),
|
||||
http = require('http'),
|
||||
https = require('https'),
|
||||
settings = require('./config/settings'),
|
||||
common = require('./dashboard/helper/common');
|
||||
ini = settings.load(),
|
||||
app = express(),
|
||||
server = null;
|
||||
|
||||
// init common
|
||||
common.init(ini);
|
||||
|
||||
//configure app setting
|
||||
require('./config/main')(app, ini);
|
||||
|
||||
// include api routes
|
||||
require('./api/route')(app, ini);
|
||||
|
||||
// include dashboard routes
|
||||
require('./dashboard/route')(app, ini);
|
||||
|
||||
// Handle https
|
||||
if (ini.security.https) {
|
||||
var credentials = common.loadCredentials(ini);
|
||||
if (!credentials) {
|
||||
console.log("Error reading HTTPS credentials");
|
||||
process.exit(-1);
|
||||
}
|
||||
server = https.createServer(credentials, app);
|
||||
} else {
|
||||
server = http.createServer(app);
|
||||
}
|
||||
|
||||
var pathPrefix = '/sugarizer';
|
||||
app.use(pathPrefix, require('path-prefix-proxy')(pathPrefix));
|
||||
|
||||
// Start listening
|
||||
server.listen(ini.web.port,"0.0.0.0");
|
||||
console.log("Sugarizer Server is listening on"+(ini.security.https ? " secure":"")+" port " + ini.web.port + "...");
|
||||
|
||||
//export app for testing
|
||||
module.exports = app;
|
Loading…
Reference in a new issue