server {
    listen 6988 ssl;  # Use port 6988 for SSL connections
    server_name ntfy.ixty.ai;

    # SSL certificates from Let's Encrypt
    ssl_certificate /etc/letsencrypt/live/ixty.ai/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/ixty.ai/privkey.pem;

    # Proxy traffic to the ntfy instance running on 192.168.1.69:6987
    location / {
        proxy_pass http://192.168.1.69:6987;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
