feat: Added robots.txt
Some checks failed
Create and publish a Docker image / build-and-push-server (push) Has been cancelled
Create and publish a Docker image / build-and-push-chart (push) Has been cancelled
Create and publish a Docker image / build-and-push-CR (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled

This commit is contained in:
Данил 2024-11-27 18:02:58 +03:00
parent 4ca14c5281
commit b864f8c929
3 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@ services:
volumes: volumes:
- ./nginx.conf:/etc/nginx/nginx.conf - ./nginx.conf:/etc/nginx/nginx.conf
- ./CertSSL:/etc/nginx/ssl - ./CertSSL:/etc/nginx/ssl
- ./robots.txt:/etc/nginx/robots.txt
depends_on: depends_on:
- server - server
- chart - chart

View file

@ -57,6 +57,10 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /robots.txt {
alias /etc/nginx/robots.txt;
}
} }
server { server {
@ -107,5 +111,9 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
} }
location /robots.txt {
alias /etc/nginx/robots.txt;
}
} }
} }

3
robots.txt Normal file
View file

@ -0,0 +1,3 @@
User-agent: *
Disallow: /api/*
Disallow: /static/*