Skip to content
This repository was archived by the owner on Feb 10, 2020. It is now read-only.

Commit 61ab883

Browse files
committed
Set prpl-server to proxy bots to http://rendertron
This will proxy bots to http://rendertron but if the address does not exist it quickly falls back to serving directly. This will be used for internal DNS usage in our production servers
1 parent 846440e commit 61ab883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"polymer-build": "npm-run-all 'polymer build {@}' --",
2525
"polymer-lint": "npm-run-all 'polymer lint {@}' --",
2626
"polymer-serve": "npm-run-all 'polymer serve {@}' --",
27-
"prpl-server": "prpl-server --root build/ --host 0.0.0.0 --port 80",
27+
"prpl-server": "prpl-server --root build/ --host 0.0.0.0 --port ${PORT:-80} $(if [ -n \"${BOT_PROXY:-}\" ]; then echo \"--bot-proxy ${BOT_PROXY}\"; fi)",
2828
"serve": "npm-run-all 'serve-examples {@}' --",
2929
"serve-examples": "./bin/serve $(if [ -z \"$*\" ]; then echo \"examples\"; fi)",
3030
"serve-live": "./bin/serve",

0 commit comments

Comments
 (0)