Laurent Hinoul

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - John F. Woods

How to use play framework behind a proxy

In this post, I’ll show you how to configure the play’s framework activator to work behind a proxy.

First, go to your home directory and create a map named .activator. In that map, add a file named activatorconfig.txt.

Second, add the following text in that file:

An example could be:

Make sure you don’t add http or https in front of the host. That was my mistake too! I have set the log level to debug so I can see if activator is doing something.

Now, in you home directory, create another map named .sbt. in that map, create another map named jvmargs. In the jvmargs map, add copy of your created activatorconfig.txt file. This is needed because .sbt is used by activator but is an independent program.

After you have done that. Try to execute the command ‘activator ui’. Or another activator command. Hopefully it works. Enjoy!

1 comment for “How to use play framework behind a proxy

  1. 10/06/2016 at 17:38

    I think you meant to write “directory” instead of “map” in several places

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: