You found that you are using systemd, adding bits to GRUB will not work. Instead, follow these steps:
Open the /etc/kernel/cmdline file for editing:
nano /etc/kernel/cmdline
SSH into proxmox node and become root user. Run the following commands to download extra software dependencies we'll need.
apt update
apt install -y libsasl2-modules mailutils
Enable 2FA for the gmail account that will be used by going to security settings
server { | |
listen 80; | |
listen [::]:80; | |
server_name domain.com; | |
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. | |
return 301 https://$host$request_uri; | |
} |