Skip to content

Instantly share code, notes, and snippets.

@sumanthkumarc
Created December 12, 2016 09:39
Show Gist options
  • Save sumanthkumarc/2a988bed4153b2795e64f44fa2fcafb4 to your computer and use it in GitHub Desktop.
Save sumanthkumarc/2a988bed4153b2795e64f44fa2fcafb4 to your computer and use it in GitHub Desktop.
working config for nodejs and drupal 8 integration.
settings = {
scheme: 'http',
port: 8080,
host: 'localhost',
resource: '/socket.io',
serviceKey: 'any-id-same-as-in-drupal-config',
backend: {
port: 80,
host: 'site-host-name',
scheme: 'http',
basePath: '',
messagePath: '/nodejs/message'
},
debug: true,
sslKeyPath: '',
sslCertPath: '',
sslCAPath: '',
baseAuthPath: '/nodejs/',
extensions: [],
clientsCanWriteToChannels: false,
clientsCanWriteToClients: false,
transports: ['websocket', 'polling'],
jsMinification: true,
jsEtag: true,
logLevel: 1
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment