diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CloudServicesConfig.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CloudServicesConfig.java index 28cf52700a..7968308216 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CloudServicesConfig.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/CloudServicesConfig.java @@ -1,30 +1,9 @@ package com.appsmith.server.configurations; +import com.appsmith.server.configurations.ce.CloudServicesConfigCE; import lombok.Getter; -import org.apache.commons.lang3.StringUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; @Configuration @Getter -public class CloudServicesConfig { - private String baseUrl; - - @Value("${appsmith.cloud_services.template_upload_auth_header}") - private String templateUploadAuthHeader; - - @Autowired - public void setBaseUrl(@Value("${appsmith.cloud_services.base_url:}") String value) { - baseUrl = StringUtils.isEmpty(value) ? "https://cs.appsmith.com" : value; - } - - @Value("${appsmith.cloud_services.signature_base_url}") - String baseUrlWithSignatureVerification; - - public String getBaseUrlWithSignatureVerification() { - return StringUtils.isEmpty(this.baseUrlWithSignatureVerification) - ? this.getBaseUrl() - : this.baseUrlWithSignatureVerification; - } -} +public class CloudServicesConfig extends CloudServicesConfigCE {} diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/ce/CloudServicesConfigCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/ce/CloudServicesConfigCE.java new file mode 100644 index 0000000000..cc9e668d68 --- /dev/null +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/configurations/ce/CloudServicesConfigCE.java @@ -0,0 +1,28 @@ +package com.appsmith.server.configurations.ce; + +import lombok.Getter; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; + +@Getter +public class CloudServicesConfigCE { + private String baseUrl; + + @Value("${appsmith.cloud_services.template_upload_auth_header}") + private String templateUploadAuthHeader; + + @Autowired + public void setBaseUrl(@Value("${appsmith.cloud_services.base_url:}") String value) { + baseUrl = StringUtils.isEmpty(value) ? "https://cs.appsmith.com" : value; + } + + @Value("${appsmith.cloud_services.signature_base_url}") + String baseUrlWithSignatureVerification; + + public String getBaseUrlWithSignatureVerification() { + return StringUtils.isEmpty(this.baseUrlWithSignatureVerification) + ? this.getBaseUrl() + : this.baseUrlWithSignatureVerification; + } +}