Zeyad2003 commented on code in PR #3994:
URL: https://github.com/apache/fineract/pull/3994#discussion_r1694177058


##########
fineract-provider/src/main/resources/application.properties:
##########
@@ -44,6 +44,9 @@ 
fineract.tenant.read-only-password=${FINERACT_DEFAULT_TENANTDB_RO_PWD:}
 
fineract.tenant.read-only-parameters=${FINERACT_DEFAULT_TENANTDB_RO_CONN_PARAMS:}
 fineract.tenant.read-only-name=${FINERACT_DEFAULT_TENANTDB_RO_NAME:}
 
+# backwards compatibility for 
'org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter'
+baseUrl=https://localhost:8443${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}

Review Comment:
   > We need to use a variable for host and port... those are available already 
with Spring Boot (just don't remember the names). Should be used here instead 
of hardcoded values.
   
   How to use spring built-in vars?
   I tried this but didn't work:
   ```properties
   # FINERACT-914
   server.forward-headers-strategy=framework
   server.port=${FINERACT_SERVER_PORT:8443}
   server.address=${FINERACT_SERVER_ADDRESS:localhost}
   
server.servlet.context-path=${FINERACT_SERVER_SERVLET_CONTEXT_PATH:/fineract-provider}
   server.compression.enabled=${FINERACT_SERVER_COMPRESSION_ENABLED:true}
   
   # backwards compatibility for 
'org.apache.fineract.infrastructure.security.filter.TenantAwareBasicAuthenticationFilter
   
baseUrl=https://${server.address}:${server.port}${server.servlet.context-path}
   ```
   
   and the checks failed as following:
   ```
   Run curl -f -k --retry 10 --retry-connrefused --connect-timeout 30 
--retry-delay 30 https://localhost:8443/fineract-provider/actuator/health
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
     0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
   curl: (35) 
error:0A000[12](https://github.com/Zeyad2003/fineract/actions/runs/10129914159/job/28010527803#step:8:13)6:SSL
 routines::unexpected eof while reading
   Error: Process completed with exit code 35.
   ```
   
   any thoughts?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to