Skip to content

Commit

Permalink
Merged in feature/SC-12634/Document_how_to_connect_via_proxy (pull re…
Browse files Browse the repository at this point in the history
…quest #20)

Feature/SC-12634/Document how to connect via proxy

Approved-by: Rina Fujino
  • Loading branch information
ikorolev-c8y committed Jan 5, 2021
2 parents 790b39a + 23d4a68 commit 51a463f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,30 @@ The agent starts automatically after installation, also at every time the machin

NOTE: packaging requires snapcraft >= 2.10 because lower versions do not support the confinement property, which is
required for packaging the agent as a snap.

#### How can I connect the agent through a proxy? ####

On CentOS 7 edit _cumulocity-agent.service_:

```bash
sudo vim /etc/systemd/system/cumulocity-agent.service
```
```
[Unit]
Description=cumulocity-agent
After=network.target
[Service]
Type=idle
Environment=http_proxy=http://<host>:<port>
Environment=https_proxy=http://<host>:<port>
ExecStart=/usr/bin/srwatchdogd /usr/bin/cumulocity-agent 240
[Install]
WantedBy=multi-user.target
```
Then reload systemd manager configuration and restart the agent:
```bash
sudo systemctl daemon-reload
sudo systemctl restart cumulocity-agent
```

0 comments on commit 51a463f

Please sign in to comment.