when building a docker image, we need to copy the initial nginx configuration file.

As of now, i sure need this ssi on snippet for the hostname to work inside the website:

location / { ssi on; }

"generate me a basic nginx conf with location / ssi on"

ach ne wait we need ssl

i never liked self signed ssl anyways, allow me the liberty and move the project into the cloud where we can have proper ssl

updating AI prompt: “we need ssl, make sure to redirect port 80 towards 443 and serve a ssl cert from a folder

# Redirect HTTP to HTTPS
server {
    listen 80;
    server_name example.com;
    return 301 https://$host$request_uri;
}

# HTTPS server with SSL and SSI enabled
server {
    listen 443 ssl;
    server_name example.com;

    ssl_certificate /path/to/cert/fullchain.pem;
    ssl_certificate_key /path/to/cert/privkey.pem;

    # Optional SSL settings for better security (can be adjusted)
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers HIGH:!aNULL:!MD5;

    location / {
        root /var/www/html;
        index index.html;
        ssi on;
    }
}