Text resume for curl
This commit is contained in:
parent
d90d303ce8
commit
67d36d1853
2 changed files with 16 additions and 0 deletions
|
@ -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
7
website/src/resume.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
+--------------------------+
|
||||
| ARAM PERES |
|
||||
+--------------------------+
|
||||
| Full-stack web developer |
|
||||
+--------------------------+
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue