Add SSL in production
Refactored code for 7.6