Convert URL to https from http

Hi guys,
I want to change the url from http://acs.test:3000 to https://acs.test:3000 is there any document for this?

Use nginx to reverse proxy, ideally to port 443 instead of port 3000 so that you don’t need to specify the port number:

# /etc/nginx/sites-available/genieacs.conf
# Nginx configuration for genieacs services
# Ensure you change the listening IP address
# If you're allergic to security, you can remove the `add_header`
#   lines without breaking functionality

upstream genieacs-ui {
        server          127.0.0.1:3000;
}

server {
        listen          80 default_server;
	listen		[::]:80 default_server;
        server_name     genieacs.example.com;

        add_header      Content-Security-Policy "default-src 'self'" always;
        add_header      Referrer-Policy "no-referrer" always;
        add_header      X-Content-Type-Options "nosniff" always;
        add_header      X-Frame-Options "sameorigin" always;
        add_header      X-XSS-Protection "1; mode block" always;

        location /.well-known {
                alias           /var/www/html/.well-known;
        }

        location / {
                return          301 https://$server_name$request_uri;
        }
}

server {
        listen          443 ssl http2 default_server;
	listen		[::]:443 ssl http2 default_server;
        server_name     genieacs.example.com;

        ssl_certificate_key     /etc/pki/tls/certs/genieacs.example.com/privkey.pem;
        ssl_certificate         /etc/pki/tls/certs/genieacs.example.com/fullchain.pem;



        access_log      /var/log/nginx/genieacs-web-access.log combined;
        error_log       /var/log/nginx/genieacs-web-error.log;

        client_max_body_size    50M;

	# needed otherwise genieacs file metadata not stored
	ignore_invalid_headers off;

        add_header      Content-Security-Policy "default-src 'self' 'unsafe-inline'" always;
        add_header      Referrer-Policy "no-referrer" always;
        add_header      X-Content-Type-Options "nosniff" always;
        add_header      X-Frame-Options "sameorigin" always;
        add_header      X-XSS-Protection "1; mode block" always;

        location / {
                proxy_pass              http://genieacs-ui;
                proxy_http_version      1.1;
                proxy_set_header        Upgrade $http_upgrade;
                proxy_set_header        Connection 'upgrade';
                proxy_set_header        Host $host;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_cache_bypass      $http_upgrade;
                proxy_redirect          off;
                proxy_set_header origin 'http://genieacs.example.com';
        }
}

Hi mjducharme,
Thanks, will try.

Hi mjducharme,
Thanks, It is working now.