Skip to content

Commit 4de4446

Browse files
committed
add robots.txt file
1 parent 45473e5 commit 4de4446

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ services:
1818
- ./certbot/www/:/var/www/certbot/:ro
1919
- ./certbot/conf/:/etc/nginx/ssl/:ro
2020
- ./static:/usr/src/app/static
21+
- ./public:/usr/src/app/public
2122
ports:
2223
- 80:80
2324
- 443:443

nginx/nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ server {
5757
alias /usr/src/app/static/;
5858
}
5959

60+
location /robots.txt {
61+
alias /usr/src/app/public/robots.txt;
62+
}
63+
6064
}
6165

6266
server {
@@ -101,4 +105,8 @@ server {
101105
alias /usr/src/app/static/;
102106
}
103107

108+
location /robots.txt {
109+
alias /usr/src/app/public/robots.txt;
110+
}
111+
104112
}

public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-Agent: *
2+
Allow: /

0 commit comments

Comments
 (0)