|
84 | 84 | "memory_allocation = \"-Xmx6144M -Xms6144M\"\n",
|
85 | 85 | "\n",
|
86 | 86 | "# Chose the tunnle service you want to use\n",
|
87 |
| - "# Available options: ngrok, argo\n", |
| 87 | + "# Available options: ngrok, argo, playit\n", |
88 | 88 | "tunnel_service = \"argo\"\n",
|
89 | 89 | "print(\"Procedding to use\", tunnel_service)\n",
|
90 | 90 | "\n",
|
|
108 | 108 | " print('Starting server...')\n",
|
109 | 109 | " !java $memory_allocation $server_flags -jar $jar_name nogui\n",
|
110 | 110 | "\n",
|
| 111 | + "elif tunnel_service == \"playit\":\n", |
| 112 | + " ! curl -SsL https://playit-cloud.github.io/ppa/key.gpg | sudo apt-key add -\n", |
| 113 | + " ! sudo curl -SsL -o /etc/apt/sources.list.d/playit-cloud.list https://playit-cloud.github.io/ppa/playit-cloud.list\n", |
| 114 | + " ! sudo apt update &>/dev/null && sudo apt install playit &>/dev/null && echo \"Playit.gg installed\" || echo \"Failed to install playit\"\n", |
| 115 | + " print('Starting server...')\n", |
| 116 | + " ! playit & java $memory_allocation $server_flags -jar $jar_name nogui\n", |
| 117 | + "\n", |
111 | 118 | "else:\n",
|
112 | 119 | " # Download & make argo executable\n",
|
113 | 120 | " !wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64\n",
|
|
0 commit comments