Redirect from www

This commit is contained in:
Maksym Pavlenko
2016-12-23 22:22:35 -08:00
parent 3eec914492
commit 7629b42cf5
+34 -28
View File
@@ -1,32 +1,38 @@
new.podsync.net
gzip
http://podsync.net, https://podsync.net, http://new.podsync.net, https://new.podsync.net, http://localhost:2015
{
gzip
errors stdout
errors stdout
ratelimit 2 3 second {
/feed
/download
ratelimit 2 3 second {
/feed
/download
}
proxy / {%REDIRECT_HOST%}:{%REDIRECT_PORT%} {
header_upstream Host {host}
transparent
}
tls [email protected]
header / {
# Remove ASP.NET specific headers
-Server
-X-Powered-By
-X-Sourcefiles
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection "1; mode=block"
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
X-Content-Type-Options "nosniff"
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options "DENY"
}
}
proxy / {%REDIRECT_HOST%}:{%REDIRECT_PORT%} {
header_upstream Host {host}
transparent
}
tls [email protected]
header / {
# Remove ASP.NET specific headers
-Server
-X-Powered-By
-X-Sourcefiles
# Enable cross-site filter (XSS) and tell browser to block detected attacks
X-XSS-Protection "1; mode=block"
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type
X-Content-Type-Options "nosniff"
# Disallow the site to be rendered within a frame (clickjacking protection)
X-Frame-Options "DENY"
}
www.podsync.net {
redir https://podsync.net{uri}
}