forked from ShadovvMoon/Shark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
54 lines (46 loc) · 1.59 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
*
* Copyright (c) 2015, Samuel Colbran <[email protected]>
* All rights reserved.
*
*/
var config = {}
path = require("path");
// General
//---------------------------
// Express
config.port = 3222; // todo: remove hardcoding in src/resources/HTML/public/js/practical.js:2
config.plugins = path.join(process.cwd(), './src/plugins/');
// Shark
//---------------------------
// Authentication
config.skipAuth = true;
config.skipUser = "admin";
// Directory locations
config.pythonDirectory = "./db";
config.uploadDirectory = config.pythonDirectory + "/upload";
config.downloadDirectory = config.pythonDirectory + "/download";
config.markingDirectory = config.pythonDirectory + "/marking";
config.ejsPath = "./src/resources/HTML/ejs";
config.criteriaPath = "./src/resources/criteria/2016/s1/a2.json";
config.publicPath = "./src/resources/HTML/public";
config.supportPath = "./src/resources/support";
// Python execution
config.pythonPaths = [
"/usr/local/bin/python3", // Mac
"C:/Python34/python.exe" // Windows (default install)
];
// MyPyTutor
//---------------------------
// Directory locations
config.tuteDirectory = "../MyPyTutor/CSSE1001Tutorials";
config.tuteConfig = config.tuteDirectory + "/tutorials.txt";
config.saveDirectory = "../MyPyTutor/CSSE1001Solutions";
config.tmpDirectory = config.pythonDirectory + "/support";
config.tmpScript = "assign1_soln.py";
config.tutorLib = "../MyPyTutor/code";
config.tutorLaunch = "MyPyTutor.py";
// Sockets
config.socketPort = 3333;
//---------------------------
module.exports = config;