Adds server-scoped shared environment variables, enabling users to define per-server variables and reference them in application configurations using {{server.VARIABLE_NAME}} syntax.
This solves the multi-server deployment problem where applications cannot distinguish which server they are running on. Each server automatically gets COOLIFY_SERVER_UUID and COOLIFY_SERVER_NAME predefined variables, and users can add custom server-level variables for any use case (e.g., GPU availability, region identifiers, etc.).
server_id foreign key and server type to shared_environment_variables tableCOOLIFY_SERVER_UUID and COOLIFY_SERVER_NAME for all existing servers(key, server_id, team_id) for data integrityenvironment_variables() relationship; auto-creates predefined server variables on server creationserver() belongsTo relationshipgetResolvedValueWithServer() method for deployment-time resolution of {{server.VAR}} placeholders; refactored internal resolution to support server override contextenvironment_variables() relationships by type for consistencygenerate_runtime_environment_variables(), generate_nixpacks_env_variables(), and generate_env_variables() to use getResolvedValueWithServer($this->server) so server variables resolve correctly per deployment targetSharedVariables\Server\Index and SharedVariables\Server\ShowEnvVarInput component to support server scope in autocomplete dropdown'server' to SHARED_VARIABLE_TYPES constant/shared-variables/servers and /shared-variables/server/{server_uuid}COOLIFY_SERVER_UUID and COOLIFY_SERVER_NAMEHAS_GPU=true){{server.HAS_GPU}} to reference the server variable{{server.VAR}}/claim #7738
buildingvibes
@buildingvibes
Praveen Pendyala
@pkpio