pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.65k stars 1.68k forks source link

Option to create symlinks #4812

Open wellnesscookie opened 1 year ago

wellnesscookie commented 1 year ago

Is there an existing feature request for this?

Describe the feature you would like to see.

Since there is a "mount" option for external folders/files outside of containers, it would be only logical to make an option to make symlink via pterodactyl as well. Symlinks are widely used across large networks that have multiple servers (minecraft mostly), which use same plugins as Essentials, Vault, ... and pterodactyl should have this feature present.

Not much things I can do with mounted points if I don't have an access to terminal or so. We can create folders, files, but I see no reason for symlinks to be excluded.

Describe the solution you'd like.

Have a button next to "New File" button, or have a drop menu that expands to:

Additional context to this request.

We would really like to see this feature implemented, as it would make things easier for us! :)

danny6167 commented 1 year ago

Be aware it's not possible to symlink to directories outside of the containers filesystem.

wellnesscookie commented 1 year ago

How comes? I spoke of the mounted directiories specifically. They are tehnically outside of the containers and my need for symlinks is that case exactly.

parkervcp commented 1 year ago

A mount is considered as part of the container when it is running.

danny6167 commented 1 year ago

I just mention it for the additional context as a lot of people in the past have thought symlinks would work that way. If your symlink target is in your mounted directory then that of course works fine as it is part of the containers filesystem.

wellnesscookie commented 1 year ago

Okay. Sorry if it sounded a bit agressive. Thanks for clarification of your comment. And in addition to parkervcp's response, yes, but I think that is fine. Just as the disk space limitation is only enforced while the container is running (if I recall well). But hey, containers are mostly thought to be runtime instances I guess

gliga03 commented 1 year ago

I support this feature request. It's a mess always having to symlink by logging to putty via ssh, just as @wellnesscookie mentioned. We symlink configuration files mostly, and this feature would make that task a lot easier.

parkervcp commented 1 year ago

The thing with symlinks is that they don't point to files on the host but in the container. This is not some magic way to share files between servers. You need a mount for that.

wellnesscookie commented 1 year ago

But I did mention I need it for files inside my mounted path, I have a feeling that neither my original post, nor the 2nd comment and discussion with danny had been read.

parkervcp commented 1 year ago

I am just making sure that information is part of this. I add symlinks in the install process.

You can always add them on startup if you modify the egg start command to run the link commands for you. Or you can make a custom image to do this for you as well.