This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a new Token | |
curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations | |
# It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210" | |
#{ | |
# "created_at": "2013-01-04T18:00:28Z", | |
# "app": { | |
# "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SudoListener { | |
public function onKernelController(FilterControllerEvent $event) { | |
$controller = $event->getController(); | |
$token = $this->tokenStorage->getToken(); | |
if ($token === null || ($user = $token->getUser()) === null) { | |
return; | |
} | |
if (!is_array($controller)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locations: | |
nxvl_7hetf84txck7: | |
location: '~ ^/(js|css|images|fonts)' | |
gzip_static: on | |
expires: 30d | |
add_header: 'Cache-Control public' | |
add_header: 'Last-Modified ""' | |
add_header: 'ETag ""' | |
access_log: off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
client_max_body_size 20M; | |
upstream influxdb { | |
server server1:8086; | |
server server2:8086; | |
} | |
upstream relay { | |
server server1:9096; | |
server server2:9096; |
OlderNewer