For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
data_dir = "/opt/nomad/data" | |
bind_addr = "0.0.0.0" | |
server { | |
enabled = true | |
bootstrap_expect = 2 | |
encrypt = "+HT7OPk+vyPzXQ=" | |
} |
job "pihole" { | |
datacenters = ["dc1"] | |
type = "service" | |
group "pihole" { | |
count = 1 | |
volume "volume_nomad" { | |
type = "host" | |
read_only = false |
/** | |
O nodejs nisto só emite erro quando chamo a função e emite o erro que $1 não tem parametro | |
demorei a perceber que tinha um ) mal colocado. | |
Acho que é por causa disto que prefiro scala. | |
*/ | |
function userAccess(sender_id, message) { | |
pg.connect(process.env.DATABASE_URL, function(err, client) { | |
console.log("userAccess>connecting to pgsql"); |
<?php | |
namespace Far\UserBundle\EventListener; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\EventDispatcher\Event; | |
use Symfony\Component\HttpKernel\KernelEvents; | |
use Symfony\Component\HttpKernel\Event\GetResponseEvent; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; |