[Coronium Cloud] email confirmation/password reset not working post SSL setup

Hi

Having set up SSL on my instance (AWS 1.93.1), the http links in mod_user.lua :

local reset\_link = "http://" .. hostname .. "/resetPassword/" .. resetToken local confirm\_link = "http://" .. hostname .. "/confirm/" .. confirmToken

…no longer work. SFTP doesn’t give me write access to the module in usr/local/coronium/lib to change the ‘http’ to ‘https’.

I noticed the folder coronium/lua/_modules , but putting my own edited version of mod_user.lua in there has no effect.

Does anyone have any ideas?

Thank you!

I can’t remember the full path off the top of my head, but you can try something like:

sudo sed “s|http|https|g” -i /path/that/I/forgot/mod_user.lua

Let me know.

That worked!

Just a note, there is also a reference to nginx.http_time in the file so you’ll want to change that back after you have run the initial replace command.

So in summary:

  1. ssh into your instance
  2. cd … until you are in the root folder
  3. sudo sed “s|http|https|g” -i /usr/local/coronium/lib/mod_user.lua
  4. sudo sed “s|https_time|http_time|g” -i /usr/local/coronium/lib/mod_user.lua

Thank you Chris!

Oh goodness, sorry about that. For future folks you can go with this instead:

sudo sed ‘s|http://|https://|g’ -i /usr/local/coronium/lib/mod_user.lua

But I wouldn’t trust me if I was me. Thanks for documenting that as well. :slight_smile:

Cheers.

I can’t remember the full path off the top of my head, but you can try something like:

sudo sed “s|http|https|g” -i /path/that/I/forgot/mod_user.lua

Let me know.

That worked!

Just a note, there is also a reference to nginx.http_time in the file so you’ll want to change that back after you have run the initial replace command.

So in summary:

  1. ssh into your instance
  2. cd … until you are in the root folder
  3. sudo sed “s|http|https|g” -i /usr/local/coronium/lib/mod_user.lua
  4. sudo sed “s|https_time|http_time|g” -i /usr/local/coronium/lib/mod_user.lua

Thank you Chris!

Oh goodness, sorry about that. For future folks you can go with this instead:

sudo sed ‘s|http://|https://|g’ -i /usr/local/coronium/lib/mod_user.lua

But I wouldn’t trust me if I was me. Thanks for documenting that as well. :slight_smile:

Cheers.