Skip to content
Snippets Groups Projects
Commit d5a336b6 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Added conf to serve robots.txt (refs #24934).

parent 0c5eb8c1
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,11 @@ server { ...@@ -43,6 +43,11 @@ server {
add_header Pragma public; add_header Pragma public;
add_header Cache-Control "public"; add_header Cache-Control "public";
} }
location /robots {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location /resources { location /resources {
location ~ \.ts$ { location ~ \.ts$ {
} }
......
...@@ -23,6 +23,8 @@ server { ...@@ -23,6 +23,8 @@ server {
} }
location /static { location /static {
} }
location /robots {
}
location /wowza-manager/ { location /wowza-manager/ {
proxy_pass http://localhost:8088/; proxy_pass http://localhost:8088/;
proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Host $host;
......
...@@ -31,6 +31,12 @@ server { ...@@ -31,6 +31,12 @@ server {
add_header Pragma public; add_header Pragma public;
add_header Cache-Control "public"; add_header Cache-Control "public";
} }
location /robots.txt {
alias /home/skyreach/htdocs/skyreach_site/static/robots.txt;
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location /remote-event/ { location /remote-event/ {
proxy_pass http://127.0.0.1:6586/; proxy_pass http://127.0.0.1:6586/;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment