It ends up that adding a secure https / ssl connection to Gnoga
applications is extremely simple if using Apache (or other web server). You
just have to set up the proxy connection with SSL.

To try out use: https://snake.gnoga.com/secure.html

You will note that because of SSL caching an interactive game is going to
be a bit jumpy. For regular business forms, etc. will work as well as with
out SSL.

I added secure.html and settings to boot.js to handle a secure connection
(i.e. use wss:// instead of ws://)


Here are some simple directions using Apache:

1) Create your self signed certificate for testing. Of course for
production you may want to purchase a real certificate:

openssl req -new -x509 -days 365 -sha1 -newkey rsa:1024 -nodes -keyout
server.key -out server.crt -subj '/O=Botton/OU=Gnoga/CN=snake.gnoga.com'

2) I added a config:

<VirtualHost *:443>
    ServerName snake.gnoga.com
    ServerAdmin da...@botton.com

    SSLEngine on
    SSLCertificateFile /home/dbotton/workspace/ssl/server.crt
    SSLCertificateKeyFile /home/dbotton/workspace/ssl/server.key

    ProxyPass /gnoga ws://127.0.0.1:8080/gnoga
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>

I restarted apache and all worked perfect :)

David Botton
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to