You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(config.js): add `APP__PROXY_DOMAIN` environment variable
You can change the `proxyDomain` value through environment variables without directly modifying the source code.
* docs(readme.md): add `APP__PROXY_DOMAIN` environment variable description
* fix(Dockerfile): add environment variables
Changed so that setting information can be changed using environment variables during build.
* docs(readme.md): update `APP__PROXY_DOMAIN` environment variable description
* Revert "fix(Dockerfile): add environment variables"
This reverts commit 9250088.
console.log(`APP__STRIPPED_PATH=${strippedPath} (path added to original host in analytics scripts)`);
16
+
console.log(`APP__PROXY_DOMAIN=${proxyDomain} (path added to original host replace proxy host`);
17
+
console.log(`APP__STRIPPED_PATH=${strippedPath} (proxy domain added to replace original host in analytics scripts)`);
16
18
console.log(`APP__ENV_NAME=${env} (should not be local nor test in production)`);
17
19
console.log(`APP__HOSTS_WHITELIST_REGEX=${hostsWhitelistRegex}${hostsWhitelistRegex.toString()===`/${MATCH_EVERYTHING_STRING}/` ? ' (YAY!! Anyone can use your proxy!)' : ''}`);
18
20
@@ -21,9 +23,9 @@ export default {
21
23
httpPort: process.env.PORT||80,
22
24
strippedPath,
23
25
hostsWhitelistRegex: hostsWhitelistRegex,
24
-
proxyDomain: "",// Domain to proxy calls through. Leave it empty to use the requested domain as a proxy domain
25
-
proxy: {// Proxy configuration is here
26
-
domains: [// These domains are replaced in any proxied response (including scripts, URLs and redirects)
26
+
proxyDomain,// Domain to proxy calls through. Leave it empty to use the requested domain as a proxy domain
27
+
proxy: {// Proxy configuration is here
28
+
domains: [// These domains are replaced in any proxied response (including scripts, URLs and redirects)
0 commit comments