var config = {};

config.resource = {
    original: {
        host: 'localhost',
        port: 4000
    },
    proxy: {
        port: 8000,
        ssl: false
    }
};

config.access = {
    protocol: 'http',
    host: 'localhost',
    port: 7000,
    path: '/validate'
}

// Security configuration
//--------------------------------------------------
config.ssl = {
    /**
     * This flag activates the HTTPS protocol in the server. The endpoint always listen to the indicated port
     * independently of the chosen protocol.
     */
    active: false,

    /**
     * Key file to use for codifying the HTTPS requests. Only mandatory when the flag active is true.
     */
    keyFile: '',

    /**
     * SSL Certificate to present to the clients. Only mandatory when the flag active is true.
     */
    certFile: ''
}

module.exports = config;
@@ -15,70 +15,404 @@
 %7D;%0A%0A
-config.resource = %7B%0A    original: %7B%0A        host: 'localhost',
+// Protected Resource configuration%0A//--------------------------------------------------%0A// Configures the address of the component that is being proxied and the address of the proxy itself.%0Aconfig.resource = %7B%0A    original: %7B%0A        /**%0A         * Host that is being proxied.%0A         */%0A        host: 'localhost',%0A%0A        /**%0A         * Port where the proxied server is listening.%0A         */
 %0A   
@@ -434,16 +434,17 @@
 %0A    %7D,%0A
+%0A
     prox
@@ -444,24 +444,94 @@
    proxy: %7B%0A
+        /**%0A         * Port where the proxy is listening.%0A         */%0A
         port
@@ -540,117 +540,570 @@
 8000
-,
 %0A    
-    ssl: false%0A    %7D%0A%7D;%0A%0Aconfig.access = %7B%0A    protocol: 'http',%0A    host: 'localhost',%0A    port: 7000,
+%7D%0A%7D;%0A%0A// Access Control configuration%0A//--------------------------------------------------%0A// This options can be used to configure the address and options of the Keystone Proxy, resposible of the request%0A// validation.%0Aconfig.access = %7B%0A    /**%0A     * Protocol to use to access the Keystone Proxy.%0A     */%0A    protocol: 'http',%0A    /**%0A     * Host where the Keystone Proxy is located.%0A     */%0A    host: 'localhost',%0A    /**%0A     * Port where the keystone Proxy is listening.%0A     */%0A    port: 7000,%0A    /**%0A     * Path of the authentication action.%0A     */
 %0A   

ADD Documentation for the config file