* Add DNS support for PWD instances
* Store IP address of PWD in all session networks and restore it with the
same IP address
* Remove unnecesary print
* Change url format to pwd<ip>-port for better DNS filtering
* Make PWD listen on 80 and 443 for DNS resolve to work
The buttons now get disabled when pressed and their text changes to the action being made.
If the action ends (either with success or failure), state is reverted to the normal one.
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
This should take effect when editors with [EditorConfig](http://editorconfig.org/) support are used.
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
* Update Xterm.js CSS to the latest version
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
* Update style.css to use terminal-container
The `.terminal` class was messing around xterm.js CSS rules, resulting in the cursor never being in a focused state.
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
* - Enable use of override for session timeout. This is more useful than having to hard-code and rebuild the code for the previous 4 hour limit. Just set environmental variable and start the app.
- Future work may involve breaking down into minutes, but this is a good minimum delivery to provide value to end-user/developer.
- Fixes bug in Captcha code by introducing new landing page. This is not a new go template, it's a separate HTML file because SRP - single reponsibility principle. Happy for this to be refacted after merging commit.
- Fix for including Docker 1.12 override has been removed for later PR.
* Merge
* Reinstate 'material' JS include'
* https for JS includes
* HTTPs for JS in bypass
Race conditions could happen if the Terminal container did not have the correct size during initialization.
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
Add google recaptcha as an initial page before creating any session.
To configure recaptcha there are 2 environment variables that are needed
`GOOGLE_RECAPTCHA_SITE_KEY` and `GOOGLE_RECAPTCHA_SITE_SECRET`.
The code contains development defaults that should be set in production
to real values.
**NOTICE: Development defaults assume that the domain is `localhost`**
It fixes lots of bugs, can fallback to long polling, resize viewport of
terminals and share clients state of the session, so they all see the
same thing.