Text resume for curl

This commit is contained in:
Aram 🍐 2019-11-20 20:20:56 -05:00
parent d90d303ce8
commit 67d36d1853
2 changed files with 16 additions and 0 deletions

View file

@ -5,7 +5,16 @@ 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 {
root /usr/share/nginx/html;
index resume.txt
try_files /resume.txt;
}
location / {
if ( $http_user_agent ~ 'curl' ) {
return 302 https://momoperes.ca/resume;
}
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;

7
website/src/resume.txt Normal file
View file

@ -0,0 +1,7 @@
+--------------------------+
| ARAM PERES |
+--------------------------+
| Full-stack web developer |
+--------------------------+