consometers / consoherozh

Visualisation de conso d’énergie
https://www.consoherozh.fr
Other
1 stars 1 forks source link

www.consoherozh.fr url hardcoded at logout. #4

Open artlog opened 2 years ago

artlog commented 2 years ago

When running grails application in development environment ( grails -Dgrails.env=dev ... runApp ) localhost application get redirected to https://www.consoherozh.fr/ at logout. This affects any deployment on another server than www.consoherozh.fr

origin

commit :5e150264beb42acc2e8ba10726b020b016b65a82 grails.serverURL = ["https://www.consoherozh.fr"]

was (and still is) needed for mail template to provide right url to user.

https://github.com/consometers/consoherozh/blob/consoherozh/src/workflow/Activiti_registerService.forgotPassword.bpmn $context.result.serverUrl

when password is forgotten.

fix should be to find a way to correctly externalize and make configurable grails.serverURL

artlog commented 2 years ago

WORKAROUND :

set grails.serverURL as string within smarthome.config.location configuration file.

For grails.env=dev to provide grails.serverURL add this into smarthome.config.location config file

grails {
      serverURL="http://localhost:8080/smarthome-application"
}