cachethq / cachethq/Docker

Running Cachet behind a proxy without Internet access

Open
#367 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
439
Forks
271
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am running Cachet behind a proxy without Internet access.
The classic way is to pass `HTTP_PROXY` and `HTTPS_PROXY` environment variables.

However, those variables are not passed to the PHP FPM process, so they are not taken into account.

I've managed to hotfix it like this for the moment:

```Dockerfile
FROM cachethq/docker:2.3.15
RUN set -e; \
# HOTFIX: pass HTTP_PROXY and HTTPS_PROXY to FPM
echo '[www]' > /etc/php7/php-fpm.d/proxy-hotfix.conf; \
echo 'env[HTTP_PROXY] = $HTTP_PROXY' >> /etc/php7/php-fpm.d/proxy-hotfix.conf; \
echo 'env[HTTPS_PROXY] = $HTTPS_PROXY' >> /etc/php7/php-fpm.d/proxy-hotfix.conf
```

Is it possible to fix it correctly?

PS: if I don't do this, Cachet takes 30sec to log-in to the dashboard, because it performs requests to Github to find latest version number.

Thank you,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.