diff options
author | Klaus Frank <agowa338@users.noreply.github.com> | 2021-11-25 14:03:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 13:03:48 +0000 |
commit | 6e54048644d7572f5fe9366329f18edc4d3de643 (patch) | |
tree | 7700748d15cd2fc35bd4bce363fcb1defc7b0084 | |
parent | d82bc95d110be2c49337733b352733397b77a47f (diff) |
Add OVERWRITECLIURL env var (#1622)
Signed-off-by: Klaus Frank <git@frank.fyi>
-rw-r--r-- | .config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 20/apache/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 20/fpm-alpine/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 20/fpm/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 21/apache/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 21/fpm-alpine/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 21/fpm/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 22/apache/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 22/fpm-alpine/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | 22/fpm/config/reverse-proxy.config.php | 5 | ||||
-rw-r--r-- | README.md | 1 |
11 files changed, 51 insertions, 0 deletions
diff --git a/.config/reverse-proxy.config.php b/.config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/.config/reverse-proxy.config.php +++ b/.config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/20/apache/config/reverse-proxy.config.php b/20/apache/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/20/apache/config/reverse-proxy.config.php +++ b/20/apache/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/20/fpm-alpine/config/reverse-proxy.config.php b/20/fpm-alpine/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/20/fpm-alpine/config/reverse-proxy.config.php +++ b/20/fpm-alpine/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/20/fpm/config/reverse-proxy.config.php b/20/fpm/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/20/fpm/config/reverse-proxy.config.php +++ b/20/fpm/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/21/apache/config/reverse-proxy.config.php b/21/apache/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/21/apache/config/reverse-proxy.config.php +++ b/21/apache/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/21/fpm-alpine/config/reverse-proxy.config.php b/21/fpm-alpine/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/21/fpm-alpine/config/reverse-proxy.config.php +++ b/21/fpm-alpine/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/21/fpm/config/reverse-proxy.config.php b/21/fpm/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/21/fpm/config/reverse-proxy.config.php +++ b/21/fpm/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/22/apache/config/reverse-proxy.config.php b/22/apache/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/22/apache/config/reverse-proxy.config.php +++ b/22/apache/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/22/fpm-alpine/config/reverse-proxy.config.php b/22/fpm-alpine/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/22/fpm-alpine/config/reverse-proxy.config.php +++ b/22/fpm-alpine/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; diff --git a/22/fpm/config/reverse-proxy.config.php b/22/fpm/config/reverse-proxy.config.php index 667be312..7df0415e 100644 --- a/22/fpm/config/reverse-proxy.config.php +++ b/22/fpm/config/reverse-proxy.config.php @@ -9,6 +9,11 @@ if ($overwriteProtocol) { $CONFIG['overwriteprotocol'] = $overwriteProtocol; } +$overwriteCliUrl = getenv('OVERWRITECLIURL'); +if ($overwriteCliUrl) { + $CONFIG['overwrite.cli.url'] = $overwriteCliUrl; +} + $overwriteWebRoot = getenv('OVERWRITEWEBROOT'); if ($overwriteWebRoot) { $CONFIG['overwritewebroot'] = $overwriteWebRoot; @@ -202,6 +202,7 @@ If the `TRUSTED_PROXIES` approach does not work for you, try using fixed values - `OVERWRITEHOST` (empty by default): Set the hostname of the proxy. Can also specify a port. - `OVERWRITEPROTOCOL` (empty by default): Set the protocol of the proxy, http or https. +- `OVERWRITECLIURL` (empty by default): Set the cli url of the proxy (e.g. https://mydnsname.example.com) - `OVERWRITEWEBROOT` (empty by default): Set the absolute path of the proxy. - `OVERWRITECONDADDR` (empty by default): Regex to overwrite the values dependent on the remote address. |