- Added IP Option (defaults to 0.0.0.09
- Reverted back to original config file - Changed startup command
This commit is contained in:
		
							parent
							
								
									8f9d962d63
								
							
						
					
					
						commit
						972182fabc
					
				@ -4,7 +4,7 @@
 | 
				
			|||||||
        "version": "PTDL_v1",
 | 
					        "version": "PTDL_v1",
 | 
				
			||||||
        "update_url": null
 | 
					        "update_url": null
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "exported_at": "2021-01-06T12:50:49+01:00",
 | 
					    "exported_at": "2021-01-09T08:45:52+01:00",
 | 
				
			||||||
    "name": "Code-Server",
 | 
					    "name": "Code-Server",
 | 
				
			||||||
    "author": "admin@altvserver.de",
 | 
					    "author": "admin@altvserver.de",
 | 
				
			||||||
    "description": "Run VS Code on any machine anywhere and access it in the browser.",
 | 
					    "description": "Run VS Code on any machine anywhere and access it in the browser.",
 | 
				
			||||||
@ -12,16 +12,16 @@
 | 
				
			|||||||
    "images": [
 | 
					    "images": [
 | 
				
			||||||
        "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14"
 | 
					        "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14"
 | 
				
			||||||
    ],
 | 
					    ],
 | 
				
			||||||
    "startup": "sh .\/.local\/lib\/code-server-3.8.0\/code-server --config cfg.yaml --bind-addr 0.0.0.0:{{SERVER_PORT}}",
 | 
					    "startup": "sh .local\/lib\/code-server-3.8.0\/bin\/code-server --bind-addr {{IP}}:{{SERVER_PORT}}",
 | 
				
			||||||
    "config": {
 | 
					    "config": {
 | 
				
			||||||
        "files": "{\r\n    \"cfg.yaml\": {\r\n        \"parser\": \"yaml\",\r\n        \"find\": {\r\n            \"auth\": \"password\",\r\n            \"password\": \"{{server.build.env.PASSWORD}}\"\r\n        }\r\n    }\r\n}",
 | 
					        "files": "{\r\n    \".config\/code-server\/config.yaml\": {\r\n        \"parser\": \"yaml\",\r\n        \"find\": {\r\n            \"password\": \"{{server.build.env.PASSWORD}}\",\r\n            \"bind\": \"{{server.build.env.IP}}:{{server.build.default.port}}\"\r\n        }\r\n    }\r\n}",
 | 
				
			||||||
        "startup": "{\r\n    \"done\": \"info  HTTP server listening on\"\r\n}",
 | 
					        "startup": "{\r\n    \"done\": \"info  HTTP server listening on\"\r\n}",
 | 
				
			||||||
        "logs": "{}",
 | 
					        "logs": "{}",
 | 
				
			||||||
        "stop": "^C"
 | 
					        "stop": "^C"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "scripts": {
 | 
					    "scripts": {
 | 
				
			||||||
        "installation": {
 | 
					        "installation": {
 | 
				
			||||||
            "script": "apt update\r\napt install curl sudo -y\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nmkdir -p \/mnt\/server\/.local\/lib \/mnt\/server\/.local\/bin\r\ncurl -fL https:\/\/github.com\/cdr\/code-server\/releases\/download\/v3.8.0\/code-server-3.8.0-linux-amd64.tar.gz \\\r\n  | tar -C \/mnt\/server\/.local\/lib -xz\r\nmv \/mnt\/server\/.local\/lib\/code-server-3.8.0-linux-amd64 \/mnt\/server\/.local\/lib\/code-server-3.8.0\r\nrm \/mnt\/server\/.local\/bin\/code-server\r\nln -s \/mnt\/server\/.local\/lib\/code-server-3.8.0\/bin\/code-server \/mnt\/server\/.local\/bin\/code-server\r\nPATH=\"\/mnt\/server\/.local\/bin:$PATH\"",
 | 
					            "script": "apt update\r\napt install curl sudo -y\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\nmkdir -p \/mnt\/server\/.local\/lib \/mnt\/server\/.local\/bin \/mnt\/server\/.config\r\ncurl -fL https:\/\/github.com\/cdr\/code-server\/releases\/download\/v3.8.0\/code-server-3.8.0-linux-amd64.tar.gz \\\r\n  | tar -C \/mnt\/server\/.local\/lib -xz\r\nmv \/mnt\/server\/.local\/lib\/code-server-3.8.0-linux-amd64 \/mnt\/server\/.local\/lib\/code-server-3.8.0\r\nPATH=\"\/mnt\/server\/.local\/bin:$PATH\"",
 | 
				
			||||||
            "container": "debian:buster-slim",
 | 
					            "container": "debian:buster-slim",
 | 
				
			||||||
            "entrypoint": "bash"
 | 
					            "entrypoint": "bash"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -29,12 +29,21 @@
 | 
				
			|||||||
    "variables": [
 | 
					    "variables": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            "name": "Password",
 | 
					            "name": "Password",
 | 
				
			||||||
            "description": "Passwort to login to your VSCode instance",
 | 
					            "description": "Passwort to login to your Code-Server instance",
 | 
				
			||||||
            "env_variable": "PASSWORD",
 | 
					            "env_variable": "PASSWORD",
 | 
				
			||||||
            "default_value": "changeme",
 | 
					            "default_value": "changeme",
 | 
				
			||||||
            "user_viewable": true,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": true,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|string|max:32"
 | 
					            "rules": "required|string|max:32"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "name": "IP",
 | 
				
			||||||
 | 
					            "description": "IP where the interface can be accessed",
 | 
				
			||||||
 | 
					            "env_variable": "IP",
 | 
				
			||||||
 | 
					            "default_value": "0.0.0.0",
 | 
				
			||||||
 | 
					            "user_viewable": true,
 | 
				
			||||||
 | 
					            "user_editable": false,
 | 
				
			||||||
 | 
					            "rules": "required|string|max:15"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user