Developers Documentation

×

Warning

301 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


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"
content/en_us/kb_setting_a_proxy_for_webconfig_and_marketplace.txt · Last modified: 2017/02/10 09:43 by dloper

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Akb_setting_a_proxy_for_webconfig_and_marketplace&1714147412