Optimized nginx and SSL configuration