I want to perform the http validation for LetsEncrypt, which requires http only (port 80). I have a Rails Application running nginx, and has all traffic redirected to HTTPS via the following configuration:
server {
listen 80;
listen [::]:80;
return 301 https://$host$request_uri;
}
my two questions:
- Is there a dynamic way (such as an API) to add the file path to my nginx file to serve the challenge file?
- Is it possible to serve this challenge file when all traffic is being redirected to https?