Add SSL in production
Refactor codes