first step is to setup 4 machines one as loadbalancer and three other as cluster nodes :
- hap-db
- db1
- db2
- db3
After you need to setup network and hostnames in the DCHP or in the hosts files like this ( ajust ip for your network )
/*! | |
* OS.js - JavaScript Cloud/Web Desktop Platform | |
* | |
* Mysql Handler: Login screen and session/settings handling via database | |
* PLEASE NOTE THAT THIS AN EXAMPLE ONLY, AND SHOUD BE MODIFIED BEFORE USAGE | |
* | |
* Copyright (c) 2011-2016, Anders Evenrud <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without |
build_settings: | |
mysql: | |
host: 'localhost' | |
user: '-----' | |
pass: '-----' | |
setup: | |
mysql: | |
- "DROP DATABASE IF EXISTS -----;" | |
- "CREATE DATABASE -----;" |
<?php | |
/*! | |
* OS.js - JavaScript Operating System | |
* | |
* Mysql Handler: Login screen and session/settings handling via database | |
* PLEASE NOTE THAT THIS AN EXAMPLE ONLY, AND SHOUD BE MODIFIED BEFORE USAGE | |
* | |
* Copyright (c) 2011-2016, Anders Evenrud <[email protected]> | |
* All rights reserved. | |
* |
/*! | |
* OS.js - JavaScript Cloud/Web Desktop Platform | |
* | |
* Mysql Handler: Login screen and session/settings handling via database | |
* PLEASE NOTE THAT THIS AN EXAMPLE ONLY, AND SHOUD BE MODIFIED BEFORE USAGE | |
* | |
* Copyright (c) 2011-2016, Anders Evenrud <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without |
This gist is created because the library i use eloquent-oauth-l5 has a pull-request (custom providers feature ) awaiting a merge | |
So here my way to use this feature and use keycloak as custom provider. | |
Inside composer.json | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/tysonlt/eloquent-oauth-l5" | |
} |
<?php | |
// (string) $message - message to be passed to Slack | |
// (string) $room - room in which to write the message, too | |
// (string) $icon - You can set up custom emoji icons to use with each message | |
public function slack($message) { | |
$data = "payload=" . json_encode(array( | |
"channel" => "#webhooks", | |
"text" => $message, | |
"icon_emoji" => ":longbox:" |
/*! | |
* OS.js - JavaScript Cloud/Web Desktop Platform | |
* | |
* Copyright (c) 2011-2016, Anders Evenrud <[email protected]> | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, this |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: