server { listen 80; listen 443 ssl; server_name $domain; location /.well-known { root /var/www/ssl-proof/; } location /back/ { add_header Content-Type text/json; proxy_pass http://$IP:$PORT/; } }