Blog

Brad Wood

December 15, 2016

Spread the word


Share your thoughts

At Ortus we love the holidays and we figured the best way to get you in the Christmas mood was to share the gift of developer productivity this year.  That's why we're doing a 12 Tips of (CommandBox) Christmas this year to send you into the new year with some clever tricks you can use as leverage when asking for your raise.

Network Proxy

Love to use CommandBox but your network admins require you to use a company proxy for all your internet traffic?  This can give you weird errors any time you try to install packages, search ForgeBox, or start up an Adobe server.  That's because each of those items requires you to connect to the Internet.  The error will probably say something like, "Uh-oh, ForgeBox returned something other than JSON!".  

No fear though, you'll be singing the hallelujah chorus once you configure CommandBox to use your proxy server.  CommandBox has "Config Settings" that it stores internally that are global to all your projects and stored in your user directory in a JSON file.  To interact with your config settings from the command line, familiarize yourself with the following three commands:

All the possible config settings are documented here in our docs.

Packets We Have Heard on High

Ok, now that we know how to modify config settings, let's review the docs on Proxy settings specifically.

https://ortus.gitbooks.io/commandbox-documentation/content/config_settings/proxy_settings.html

Enter your config like so from the interactive shell.  Note, some of these settings may be optional on your network such as username and password.

CommandBox> config set proxy.server=myProxy.com
CommandBox> config set proxy.port=9000
CommandBox> config set proxy.user=proxyUser
CommandBox> config set proxy.password=proxyPass

Now, you can admire your new settings one at a time...

CommandBox> config show proxy.server
CommandBox> config show proxy.port
CommandBox> config show proxy.user
CommandBox> config show proxy.password

Or all at once!

CommandBox> config show proxy

Your network calls should now be routed through your company's proxy.  If you still have issues connecting, ensure your network team isn't filtering web sites to keep you from playing Elf Yourself on Coffee bBeak Arcade all day long.  You may also be able to get additional information by checking out the CommandBox system log file like so:

CommandBox> system-log | open

 

Add Your Comment

Recent Entries

Thanksgiving Day deals: Access Exclusive Discounts Until November 30th!

Thanksgiving Day deals: Access Exclusive Discounts Until November 30th!

Prepare for the Ortus Thanksgiving Day Deals! This is your chance to enhance your development journey with amazing deals catered to everyone—from experienced developers to tech aficionados. Our unique offers are crafted to assist you in reaching your objectives while conserving your budget!

Don't Let These Incredible Offers Slip Away!

Utilize the code THKSGIVING24 at checkout to take advantage of these fantastic discounts before they end...

Cristobal Escobar
Cristobal Escobar
November 04, 2024
BoxLang Newsletter: October 2024

BoxLang Newsletter: October 2024

Welcome to the October edition of the BoxLang Newsletter! **This month has been packed with exciting updates, new features, and enhancements that continue to shape BoxLang into a robust and versatile programming language. In this edition, we highlight the latest beta releases, new integrations, and key features that have been introduced.

Maria Jose Herrera
Maria Jose Herrera
November 04, 2024
BoxLang 1.0.0 Beta 21 Launched

BoxLang 1.0.0 Beta 21 Launched

This release brings another round of powerful tools and refinements to the BoxLang community, making development more dynamic and robust than ever. We’ve added new capabilities for debugging and tracing, expanded context-sensitive controls for thread management, and introduced new methods for fluent attachment handling.

For deeper flexibility, our improvements enhance configurability, streamline session control, and add deeper levels of JSON serialization management. Plus, we’ve squashed a wide range of bugs, enhancing stability across database connections, date handling, and runtime compatibility with CFML.

In addition, CSRF Token functionality is now provided via the bx-csrf module.

Luis Majano
Luis Majano
November 01, 2024