mirror of
https://github.com/Redume/Kekkai.git
synced 2025-02-23 12:43:12 +03:00
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
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:
parent
4ca14c5281
commit
b864f8c929
3 changed files with 12 additions and 0 deletions
|
@ -7,6 +7,7 @@ services:
|
|||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./CertSSL:/etc/nginx/ssl
|
||||
- ./robots.txt:/etc/nginx/robots.txt
|
||||
depends_on:
|
||||
- server
|
||||
- chart
|
||||
|
|
|
@ -57,6 +57,10 @@ http {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
alias /etc/nginx/robots.txt;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
|
@ -107,5 +111,9 @@ http {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
location /robots.txt {
|
||||
alias /etc/nginx/robots.txt;
|
||||
}
|
||||
}
|
||||
}
|
3
robots.txt
Normal file
3
robots.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
User-agent: *
|
||||
Disallow: /api/*
|
||||
Disallow: /static/*
|
Loading…
Add table
Reference in a new issue