Skip to content

Commit ee2be46

Browse files
committed
add proxy section into readme
1 parent f2fb758 commit ee2be46

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,41 @@ Thinking of not managing this yourself? Check out the [SaaS migration docs](http
2222

2323
Please visit [our documentation](https://develop.sentry.dev/self-hosted/) for everything else.
2424

25+
### Installation over proxy
26+
27+
In some enterprise setups there are no direct Internet connection. It's possible to access particular hosts through HTTP Proxy. To install Sentry with Self-Hosted Sentry nightly you should make some preparations:
28+
29+
Asume that installation is running on the Linux, http://proxy:3128 is a proxy address and `127.0.0.0/8` is the only network that should be accessed without proxy.
30+
31+
Set `http_proxy`, `https_proxy` and `no_proxy` variables in `/etc/environment` file.
32+
33+
To make `docker pull` command respect proxy create `/etc/systemd/system/docker.service.d/http-proxy.conf` file with such contents:
34+
35+
```
36+
[Service]
37+
Environment="HTTP_PROXY=http://proxy:3128"
38+
Environment="HTTPS_PROXY=http://proxy:3128"
39+
Environment="NO_PROXY=127.0.0.0/8"
40+
```
41+
42+
Run `systemctl daemon-reload` and restart Docker with `systemctl restart docker.service`.
43+
44+
To add proxy env variables into Docker containers create `~/.docker/config.json` with such contents:
45+
46+
```json
47+
{
48+
"proxies":
49+
{
50+
"default":
51+
{
52+
"httpProxy": "http://proxy:3128",
53+
"httpsProxy": "http://proxy:3128",
54+
"noProxy": "127.0.0.0/8"
55+
}
56+
}
57+
}
58+
```
59+
2560
### Customize DotEnv (.env) file
2661

2762
Environment specific configurations can be done in the `.env.custom` file. It will be located in the root directory of the Sentry installation.

0 commit comments

Comments
 (0)