ekinhbayar/gitamp

View on GitHub
config-sample.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace ekinhbayar\GitAmp;

use League\Uri\Uri;
use ekinhbayar\GitAmp\Github\Token;

/**
 * Use a personal access token for authentication
 * https://github.com/settings/tokens
 * To bind to HTTPS servers, use bindSsl like below.
 * bindSsl(new SslServerAddress('127.0.0.1', 1338, new Amp\Socket\Certificate('/../cert.pem')))
 */
return (new Configuration(new Token('123456')))
    ->addWebsocketAddress(Uri::createFromString('https://gitamp.audio'))
    ->bind(new ServerAddress('127.0.0.1', 1337))
    ->addSpecialRepository('ekinhbayar/gitamp')
    ->addSpecialRepository('amphp/amp')
;