2020-03-03 07:48:48 +08:00
{
"_comment" : "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO" ,
"meta" : {
2022-06-08 07:28:49 +08:00
"version" : "PTDL_v1" ,
"update_url" : null
2020-03-03 07:48:48 +08:00
} ,
2022-06-08 07:28:49 +08:00
"exported_at" : "2022-05-08T21:54:05+02:00" ,
2020-03-03 07:48:48 +08:00
"name" : "Postgres" ,
"author" : "parker@parkervcp.com" ,
"description" : "A default Postgres install that is not really editable." ,
2022-06-08 07:28:49 +08:00
"features" : null ,
"images" : [
"ghcr.io\/parkervcp\/yolks:postgres_14"
] ,
"file_denylist" : [ ] ,
2020-03-03 07:48:48 +08:00
"startup" : "postgres -D \/home\/container\/postgres_db\/" ,
"config" : {
2022-06-08 07:28:49 +08:00
"files" : "{\r\n \"postgres_db\/postgresql.conf\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"#port =\": \"port = {{server.build.default.port}}\",\r\n \"#external_pid_file =\": \"external_pid_file = '\/home\/container\/postgres_db\/run\/postgres.pid'\",\r\n \"#unix_socket_directories =\": \"unix_socket_directories = '\/home\/container\/postgres_db\/run\/'\"\r\n }\r\n }\r\n}" ,
2020-03-03 07:48:48 +08:00
"startup" : "{\r\n \"done\": \"database system is ready to accept connections\"\r\n}" ,
"logs" : "{}" ,
"stop" : "^C"
} ,
"scripts" : {
"installation" : {
2022-06-08 07:28:49 +08:00
"script" : "#! \/bin\/ash\r\nadduser -D -h \/home\/container container\r\n\r\nchown -R container: \/mnt\/server\/\r\n\r\nsu container -c 'initdb -D \/mnt\/server\/postgres_db\/ -A md5 -U \"$PGUSER\" --pwfile=<(echo \"$PGPASSWORD\")'\r\n\r\nmkdir -p \/mnt\/server\/postgres_db\/run\/\r\n\r\n## Add default \"allow from all\" auth rule to pg_hba\r\nif ! grep -q \"# Custom rules\" \"\/mnt\/server\/postgres_db\/pg_hba.conf\"; then\r\n echo -e \"# Custom rules\\nhost all all 0.0.0.0\/0 md5\" >> \"\/mnt\/server\/postgres_db\/pg_hba.conf\"\r\nfi\r\n\r\necho -e \"Done\"" ,
"container" : "postgres:14-alpine" ,
"entrypoint" : "bash"
2020-03-03 07:48:48 +08:00
}
} ,
"variables" : [
{
2022-06-08 07:28:49 +08:00
"name" : "Superuser Name" ,
"description" : "The username for the postgres superuser" ,
2020-03-03 07:48:48 +08:00
"env_variable" : "PGUSER" ,
"default_value" : "pterodactyl" ,
2022-06-08 07:28:49 +08:00
"user_viewable" : true ,
"user_editable" : false ,
2020-03-03 07:48:48 +08:00
"rules" : "required|string|max:20"
} ,
{
2022-06-08 07:28:49 +08:00
"name" : "Superuser Password" ,
"description" : "The postgres super user password with a strong default.\r\nYou should be generating new ones for each server.\r\nIf you don't then users can hit other users DB's" ,
"env_variable" : "PGPASSWORD" ,
"default_value" : "Pl3453Ch4n63M3!" ,
"user_viewable" : true ,
"user_editable" : false ,
2020-03-03 07:48:48 +08:00
"rules" : "required|string|max:20"
}
]
}