Skip to content

Commit

Permalink
MODIFIED: dynamic robots delivery
Browse files Browse the repository at this point in the history
changes output based on received hostname
  • Loading branch information
sd-ditoy committed Aug 8, 2024
1 parent f091429 commit 33cf3c1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docker/nginx-default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ server {
proxy_pass https://backend.casper.network/cce/sitemap;
}

location /robots.txt {
proxy_pass https://backend.casper.network/cce/robots;
}

location @prerender {
ssi on;
set $prerender 0;
Expand Down
3 changes: 0 additions & 3 deletions public/robots.txt

This file was deleted.

6 changes: 6 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ module.exports = {
devServer: {
public: '0.0.0.0:8080',
disableHostCheck: true,
proxy: {
'/robots.txt': {
target: 'http://0.0.0.0:8055/cce/robots',
pathRewrite: { 'robots.txt': '' },
},
},
},
pluginOptions: {
i18n: {
Expand Down

0 comments on commit 33cf3c1

Please sign in to comment.