Skip to content
This repository has been archived by the owner on Nov 25, 2023. It is now read-only.

Commit

Permalink
no image
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Nov 25, 2023
1 parent a00f6ec commit ab2cbce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion infra/nginx/sites-enabled/isupipe.conf
Expand Up @@ -46,15 +46,23 @@ server {
alias /home/isucon/webapp/img/icons/;
default_type image/jpeg;

error_page 404 /home/isucon/webapp/img/NoImage.jpg;


if (!-f /home/isucon/webapp/img/icons/$username.jpg) {
return 404;
}

try_files /home/isucon/webapp/img/icons/$username.jpg =404;
}

location = /home/isucon/webapp/img/NoImage.jpg {
internal;
root /; # 画像のパスの基準となるディレクトリを指定
}

location /api {
proxy_set_header Host $host;
proxy_pass http://localhost:8080;
}
}
}

0 comments on commit ab2cbce

Please sign in to comment.