I hope I’m explaining this right, but I want to be able to use variables at the folder level:
Which I then can use in the underlying server actions, like {{folder_variable}}. For instance I want to store the username and password of the API I’m calling at the folder level, and then dynamically reference them in the server actions.
If it’s not possible at the folder level, maybe at a global level?
Per target variables are sure to please many! I’ve never considered the need for per folder variables though… not saying it is bad, just hasn’t been a need for me.
The need for different local/remote target settings hasn’t been an issue for me, but as @mebeingken says, it will be please many and sounds like a good solution, with additional potential uses/advantages. Variables at the folder level isn’t something I’ve needed or wished for so far, but once it’s an option, I expect it will offer solutions or methods I hadn’t thought of before.
The environment variables have to be set on the server. In plesk you can do that in the admin and with docker you can add it in the docker compose file.