content:en_us:kb_setting_a_proxy_for_webconfig_and_marketplace

Setting a Proxy Server for Webconfig and the ClearOS Marketplace

If you are using ClearOS behind a proxy server and need to register a system, install apps from the marketplace, or install applications via command line, you will need to set up a proxy address for the environment that you are in. For Webconfig and the Marketplace, you will need to set the environment variable in systemd for ClearOS 7. To do this edit the following file from command line:

/etc/systemd/system/multi-user.target.wants/webconfig.service

For example, if your proxy server is 'proxy.example.com' and the port of the proxy service is http and https, you will need to add the following lines in the [Service] section:

Environment=http_proxy="http://proxy.example.com:8080"
Environment=https_proxy="http://proxy.example.com:8080"

After you run edit this file, you will need to present this data back to the system (or reboot). You can do this by running:

systemctl daemon-reload
systemctl restart webconfig

This will reset Webconfig to use the new proxy settings.

Using yum from command line

The settings for Webconfig and the ClearOS Marketplace only helps you if you are installing apps from Webconfig's Marketplace. If you are using apps via command line, you can export these variables to your own running environment by doing the following in a command prompt preceeding your use of 'yum':

http_proxy="http://proxy.example.com:8080"
https_proxy="http://proxy.example.com:8080"

search?q=clearos%2C%20clearos%20content%2C%20kb%2C%20app-network%2C%20clearos7%2C%20categorysettings%2C%20maintainer_dloper&btnI=lucky

content/en_us/kb_setting_a_proxy_for_webconfig_and_marketplace.txt · Last modified: 2017/02/10 16:43 by dloper