4 files added
1 files modified
| New file |
| | |
| | | # in Apache Config einfügen |
| | | |
| | | # proxy all requests to /popcorn/... to the globus-ilias-rest service # alex@minervis.com |
| | | ProxyPreserveHost On |
| | | ProxyPass /popcorn http://localhost:4101 |
| | | ProxyPassReverse /popcorn http://localhost:4101 |
| New file |
| | |
| | | const iliasLib = require("../lib/libIlias") |
| | | const db = require("../lib/db") |
| | | const yargs = require("yargs") |
| | | |
| | | ///////////////////////////////////////////////////////////////////////// |
| | | |
| | | const argv = yargs |
| | | .usage("$0 [offset] [limit]", "get users from ILIAS",) |
| | | .strict() |
| | | .parse() |
| | | |
| | | |
| | | run(argv) |
| | | .then(console.log) |
| | | .catch(console.error) |
| | | .finally(process.exit) |
| | | |
| | | async function run({offset, limit}) { |
| | | offset = offset || 0 |
| | | limit = limit || 3 |
| | | return await db.getUsers(offset, limit) |
| | | } |
| | | |
| | |
| | | |
| | | try { |
| | | let userSearchQuery = await getUserSearchQuery(offset, limit, search) |
| | | // log.info(userSearchQuery) |
| | | log.info(userSearchQuery) |
| | | const [results, fields] = await pool.query(userSearchQuery) |
| | | console.log(results, fields) |
| | | const count = await getUserCount(offset, limit, search) |
| | | return { |
| | | total: count, |
| New file |
| | |
| | | rsync -ar . hati:globus-ilias-rest/ |
| New file |
| | |
| | | { |
| | | "authtoken": "jiuGfr432898D90290kj4f45ldkfn3hh8F", |
| | | "port": 4101, |
| | | "db": { |
| | | "host": "neso.ms.minervis.com", |
| | | "port": 3306, |
| | | "database": "ilias_globus", |
| | | "user": "globusadmin", |
| | | "password": "yyJkbd2XEN8nvrp59X8A" |
| | | }, |
| | | "ilias": { |
| | | "urlDoc": "Url of custom ILIAS PHP file", |
| | | "url": "https://www.lernen-mit-globus-baumarkt.de/globus-ilias-rest/login.php", |
| | | "iliastoken": "jkhHKhui899HUKHBzGHtgoiedko2393490", |
| | | "iliasTokenComment": "Token muss bei Änderungen nach php/globus-ilias-rest/token kopiert werden", |
| | | "exampleUrlPhp": "https://www.lernen-mit-globus-baumarkt.de/globus-ilias-rest/login.php?token=jkhHKhui899HUKHBzGHtgoiedko2393490&command=ping" |
| | | } |
| | | } |