Coder Social home page Coder Social logo

gd-sdk-external's Introduction

The page that can be uploaded to developer.gamedistribution.com for when we want to allow a game to be self-hosted by a developer. Like with Plinga or .io games, which can contain self hosted/ maintained ingame payments, authentication services, etc.

Since we use postMessage to communicate we need to set correct vhosts in order to test. Don't forget to set some fake certificates for ssl. PostMessage API needs valid domains.

Our game source location:

<VirtualHost *:443>
    ServerName html5.gamedistribution.com
    ServerAlias html5.gamedistribution.com
    DocumentRoot [PATH_TO_GAMEDISTRIBUTION]/html5.gamedistribution.com
    <Location />
            Options FollowSymLinks MultiViews
            Order allow,deny
            Allow from all
            Require all granted
    </Location>
    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /etc/apache2/ssl/localhost.crt
    SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>

The partner game source location:

<VirtualHost *:443>
    ServerName play-staging.plinga.de
    ServerAlias play-staging.plinga.de
    DocumentRoot [PATH_TO_GAME]/play-staging.plinga.de
    <Location />
            Options FollowSymLinks MultiViews
            Order allow,deny
            Allow from all
            Require all granted
    </Location>
    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /etc/apache2/ssl/localhost.crt
    SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>

AND/ OR

<VirtualHost *:443>
    ServerName wanderers.io
    ServerAlias wanderers.io
    DocumentRoot [PATH_TO_GAME]/wanderers.io
    <Location />
            Options FollowSymLinks MultiViews
            Order allow,deny
            Allow from all
            Require all granted
    </Location>
    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /etc/apache2/ssl/localhost.crt
    SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>

AND/ OR

<VirtualHost *:443>
    ServerName tankionline.com
    ServerAlias tankionline.com
    DocumentRoot [PATH_TO_GAME]/tankionline.com
    <Location />
            Options FollowSymLinks MultiViews
            Order allow,deny
            Allow from all
            Require all granted
    </Location>
    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateFile /etc/apache2/ssl/localhost.crt
    SSLCertificateKeyFile /etc/apache2/ssl/localhost.key
</VirtualHost>

The result is that we can host a game on a publisher portal...

https://spele.nl

and have our game...

https://html5.gamedistribution.com/714e210611d8429b982b9df68a287c07/

talk to our partner game.

https://wanderers.io

gd-sdk-external's People

Watchers

James Cloos avatar PBMCube avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.