I always forget how to redirect a domain from http -> https when i’m in Direct Admin. It is pretty easy:

|*if SSL_TEMPLATE="0"|
    return 301 https://|DOMAIN|$request_uri;

Login as admin, go to Custom HTTPD Configurations, find your domain and add the code in the textarea. Click save and reload your nginx configuration. Done.