Skip to content

Commit

Permalink
Update nginx.default
Browse files Browse the repository at this point in the history
  • Loading branch information
acdh-ch authored May 3, 2024
1 parent 9fc1d26 commit 8b850ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nginx.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ server {
listen 8020;
client_max_body_size 30M;


location = /robots.txt {
try_files /robots.txt @robots.txt;
}

location @robots.txt {
add_header Content-Type text/plain;
return 200 "User-agent: *\nDisallow: /\n";
}

location /static/ {
autoindex on;
alias /opt/app/staticfiles/;
Expand Down

0 comments on commit 8b850ce

Please sign in to comment.