mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 04:58:07 +00:00
Add in OS Docs
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
---
|
||||
tag: ["rancheros", "os", "proxy"]
|
||||
category: "os"
|
||||
layout: list-docs
|
||||
title: Configuring Proxy Settings
|
||||
weight: 172
|
||||
---
|
||||
|
||||
## Proxy settings
|
||||
---
|
||||
|
||||
HTTP proxy settings can be set directly under the `network` key. This will automatically configure proxy settings for both Docker and System Docker.
|
||||
|
||||
```yaml
|
||||
#cloud-config
|
||||
rancher:
|
||||
network:
|
||||
http_proxy: https://myproxy.example.com
|
||||
https_proxy: https://myproxy.example.com
|
||||
no_proxy: localhost,127.0.0.1
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
> **Note:** System Docker proxy settings will not be applied until after a reboot.
|
||||
|
||||
To add the `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` environment variables to a system service, specify each under the `environment` key for the service.
|
||||
|
||||
```yaml
|
||||
#cloud-config
|
||||
rancher:
|
||||
services:
|
||||
myservice:
|
||||
...
|
||||
environment:
|
||||
- HTTP_PROXY
|
||||
- HTTPS_PROXY
|
||||
- NO_PROXY
|
||||
```
|
||||
Reference in New Issue
Block a user