This commit is contained in:
Aram 🍐 2019-11-20 20:33:06 -05:00
parent a83342e6fe
commit 92032046fc

View file

@ -5,10 +5,6 @@ server {
add_header Content-Security-Policy "default-src 'self'; object-src 'none'; style-src 'self' 'unsafe-inline'";
add_header X-Frame-Options "SAMEORIGIN";
location = /resume {
try_files /usr/share/nginx/html/resume.txt =404;
}
location / {
if ( $http_user_agent ~ 'curl' ) {
return 302 https://momoperes.ca/resume;
@ -22,4 +18,8 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}
location = /resume {
try_files /usr/share/nginx/html/resume.txt =404;
}
}