Nginx configuration without domain name?

Hi, a (hopefully) quick TQ on installing nextcloud with the nginx webserver:

Installing and following the instructions for nginx configuration here:
https://docs.nextcloud.com/server/12/admin_manual/installation/nginx.html

I can see the following block to add in the configuration file:

server {
    listen 80;
    server_name cloud.example.com;
    # enforce https
    return 301 https://$server_name$request_uri;
}

But I’m not planning on getting a domain name - I already have a static IP from my ISP and I am fine just typing that into a web browser. What is the syntax for entering this in the line that reads

server_name cloud.example.com;

What about HTTPS? You’ll need a certificate for a domain name if you want to protect the data in transit otherwise you are sending everything back and forth in plain text.

If you want to go ahead anyway and do not care about security, you can use the server IP for the server name, or just use the value default_server instead. Here are two examples, fill in the rest of the configuration where the “…” part begins:

server {
  listen 80 default_server;
  ...
}

server {
  listen 80;
  server_name IP.AD.DR.ESS;
  ...
}