Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update \
COPY nginx.conf /etc/nginx/nginx.conf
COPY features /etc/nginx/features/
COPY templates /etc/nginx/templates/
COPY robots /etc/nginx/conf.d/robots/
COPY docker-entrypoint.d/*.sh /docker-entrypoint.d/
COPY *.yaml /
COPY 50x.html /usr/share/nginx/html/
Expand Down
15 changes: 15 additions & 0 deletions nginx/robots/inSPIRED-inTRONICS-Site_robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
User-agent: *
Disallow: /error
Disallow: /maintenance
Disallow: /account
Disallow: /search
Disallow: /compare
Disallow: /recently
Disallow: /basket
Disallow: /checkout
Disallow: /register
Disallow: /login
Disallow: /logout
Disallow: /forgotPassword
Disallow: /gdpr-requests
Disallow: /contact
15 changes: 15 additions & 0 deletions nginx/robots/inSPIRED-inTRONICS_Business-Site_robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
User-agent: *
Disallow: /error
Disallow: /maintenance
Disallow: /account
Disallow: /search
Disallow: /compare
Disallow: /recently
Disallow: /basket
Disallow: /checkout
Disallow: /register
Disallow: /login
Disallow: /logout
Disallow: /forgotPassword
Disallow: /gdpr-requests
Disallow: /contact
3 changes: 3 additions & 0 deletions nginx/templates/multi-channel.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ server {
proxy_busy_buffers_size 256k;
}
{{ if (has $mapping "channel") }}
location = /robots.txt {
alias /etc/nginx/conf.d/robots/{{ .channel }}_robots.txt;
}
location / {
{{- tmpl.Exec "LOCATION_TEMPLATE" $mapping }}
include /etc/nginx/conf.d/add-header.conf;
Expand Down