Download Jar. Libraryless. Click here for Pure Java version (24959L/166K).
1 | !7 |
2 | |
3 | //set flag NotifyingPrintLog. |
4 | |
5 | !include once #1002615 // master() |
6 | |
7 | // Options for big server. TODO: merge with OS args handling |
8 | //sS vmArgs = "-XX:MaxHeapFreeRatio=70 -XX:MinHeapFreeRatio=40 -XX:+UseG1GC --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --illegal-access=permit --add-opens java.base/jdk.internal.module=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang.module=ALL-UNNAMED"; |
9 | sS vmArgs = "-XX:MaxHeapFreeRatio=70 -XX:MinHeapFreeRatio=40 " + zgcOption() + " --add-opens java.base/jdk.internal.loader=ALL-UNNAMED --illegal-access=permit --add-opens java.base/jdk.internal.module=ALL-UNNAMED --add-opens java.base/jdk.internal.ref=ALL-UNNAMED --add-opens java.base/java.lang.module=ALL-UNNAMED"; |
10 | |
11 | // Talk to Eleu, Web Auth, Cookies |
12 | static L<S> seedBots = ll(#1002213, #1002590, #1002157, #1010504); |
13 | |
14 | !include #1002576 // Web Serving |
15 | !include #1002578 // Eleu Core |
16 | !include #1013904 // Eleu web socket |
17 | |
18 | static int[] webServerPorts = {80, 8080}; |
19 | static int[] httpsPorts = {443, 8443}; |
20 | |
21 | static LS initialModuleIDs = ll( |
22 | "#1018866/SystemPrintLog", |
23 | "#1019954/TaskBar_dev" |
24 | ); |
25 | |
26 | p { |
27 | botNames = litmap( |
28 | serve := "#1014036/raw", |
29 | img := "#1014038/raw", |
30 | mech := #1013927, |
31 | images := #1004590, |
32 | eleu := "#1002213/raw", |
33 | "eleuraw" := "#1002076/raw", |
34 | "don-enrico" := "#1006604/raw", |
35 | wiki := "#1007510/raw", |
36 | jobs := "#1007647/raw", |
37 | chess := "#1012832/raw", |
38 | files := "#1015408/raw", |
39 | rules := "#1017959/raw", |
40 | jar := "#1020140/raw", |
41 | blog := "#1016323/raw", |
42 | pages := "#1017992/raw"); |
43 | |
44 | print("new."); |
45 | becomeBotVMIfFirst(); |
46 | webInit(); |
47 | |
48 | eleu_webSocket_init(); |
49 | |
50 | if (nempty(httpsPorts)) pcall { |
51 | /*File keystore = firstFileThatExists( |
52 | javaxSecretDir("keystore.p12"), |
53 | secretProgramFile(programID(), "keystore.jks"));*/ |
54 | S pass = loadSecretTextFileMandatory("keystore-pass").trim(); |
55 | //serveHttps(httpsPort, keystore, pass); |
56 | //serveHttpsWithWebsockets(httpsPort, keystore, pass, eleu_webSocket_handler()); |
57 | //serveHttpsWithWebsockets_server.printServes = false; |
58 | //serveHttpsWithWebsockets_multiplePorts(keystore, pass, eleu_webSocket_handler(), httpsPorts); |
59 | serveHttpsWithWebsockets_multiplePorts( |
60 | //serverSocketFactory_botCompanyPlusAgiBlue(), |
61 | serverSocketFactory_botCompanyEtc(), |
62 | eleu_webSocket_handler(), httpsPorts); |
63 | ownResource(serverSocketFactory_autoUpdate()); |
64 | } |
65 | |
66 | coreInit(); |
67 | |
68 | for (S id : seedBots) |
69 | call(getDispatcher(), "addSeedBot", id); |
70 | |
71 | if (hasBot("New Eleu Watch Dog.")) |
72 | print("Have Eleu Watch Dog."); |
73 | else { |
74 | print("Starting Eleu Watch Dog."); |
75 | nohupJavax(stringIf(usingLiveCodeDir(), "-livecode ") + psI(#1014075)); |
76 | sleepSeconds(5); |
77 | } |
78 | |
79 | // Start OS |
80 | |
81 | resetPrintLogToLocalLog(runWithUserHomeAndParams(#1016478, actualUserDir("JavaX-Virtual/eleu"), |
82 | initialModules_override := voidfunc(O os) { |
83 | dm_makeOrShowModules(initialModuleIDs) |
84 | }, |
85 | background := #1101737, |
86 | mainIconID := #1101704)); |
87 | } |
Began life as a copy of #1002017
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): bhatertpkbcr, cfunsshuasjs, djztyncnmsck, gwrvuhgaqvyk, ishqpsrjomds, mqqgnosmbjvj, odhhsrjjbcgr, onxytkatvevr, pyentgdyhuwx, tvejysmllsmz, twycvekltchr, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1013896 |
Snippet name: | Eleutheria Main for butter.botcompany.de + Stefan's OS (LIVE) |
Eternal ID of this version: | #1013896/48 |
Text MD5: | 741c6a099bd94e0a6e31868d1c04f231 |
Transpilation MD5: | a0fb8c8528f5ad90c454e719d34c8993 |
Author: | stefan |
Category: | |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-22 12:02:14 |
Source code size: | 3125 bytes / 87 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 759 / 12402 |
Version history: | 47 change(s) |
Referenced in: | [show references] |