Skip to content

Commit 29abca7

Browse files
authored
Merge pull request #206 from HSLdevcom/dns-validation-path
Add a path under digitransit.fi for domain validation
2 parents 426c439 + 62c98c6 commit 29abca7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,14 @@ http {
512512
# Add HTTP Strict Transport Security for good measure.
513513
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;";
514514

515+
# This is used by the certificate authority to validate we own the domain
516+
location = /.well-known/pki-validation/fileauth.txt {
517+
proxy_pass https://dnsvalidationstorage.blob.core.windows.net/dnsfiles/fileauth.txt;
518+
proxy_redirect off;
519+
proxy_set_header X-Real-IP $remote_addr;
520+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
521+
}
522+
515523
location / {
516524
proxy_pass http://digitransit-site:8080;
517525
include basicsettings.conf;

0 commit comments

Comments
 (0)