This file contains 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
<?php | |
require_once('db/DBConnection.php'); | |
require_once('db/DBStatement.php'); | |
require_once('db/DBParameter.php'); | |
require_once('db/DBException.php'); | |
class DBLog | |
{ |
This file contains 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
<FilesMatch \.php$> | |
SetHandler "proxy:unix:/run/php/johan.colabo.dk.sock|fcgi://localhost/" | |
</FilesMatch> | |
<Proxy unix:/run/php/johan.colabo.dk.sock|fcgi://localhost/> | |
ProxySet connectiontimeout=5 timeout=240 | |
Allow from all | |
</Proxy> |
This file contains 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
{ file }: | |
let | |
pin = builtins.fromJSON (builtins.readFile file); | |
in | |
with pin; import ((import <nixpkgs> {}).fetchgit { inherit rev sha256 url; }) |
This file contains 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
apache.hosts = { | |
jira = { | |
hostName = config.services.jira.proxy.name; | |
proxyTarget = "http://127.0.0.1:${toString config.services.jira.listenPort}"; | |
withAcme = true; | |
}; | |
johan = { | |
hostName = "johan.colabo.dk"; |
This file contains 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
#!/usr/bin/env bash | |
set -euo pipefail | |
cd $(dirname "${BASH_SOURCE[0]}") | |
for F in $(ls -1 ../hostgroups/*.nix); do | |
morph ${@/\{\}/$F} | |
done |
This file contains 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
{ config, pkgs, ... }: { | |
deployment.healthChecks = { | |
cmd = ["${pkgs.kubectl}/bin/kubectl" "apply" "-f" "${pkgs.writeText "test-pod.yaml" (builtins.toJSON (testPod fqdn))}"]; | |
description = "Run test pod on node: ${fqdn}."; | |
}; | |
services.foo.enable = true; | |
# whatevs else |
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: dex | |
name: dex | |
spec: | |
replicas: 4 | |
template: | |
metadata: |
This file contains 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
{ config, pkgs, lib, ... }: | |
with lib; | |
let | |
desc = "Kubernetes DBC Addons"; | |
cfg = config.services.kubernetes.dbc.addons; | |
files = with builtins; dir: | |
remove null | |
(pkgs.lib.mapAttrsToList |
This file contains 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
{ config, pkgs, lib, ... }: | |
with lib; | |
let | |
cfg = config.services.kube-router; | |
# CNI-config file name is hardcoded in kube-router source code | |
cniConfigFileName = "10-kuberouter.conf"; | |
cniFile = pkgs.writeText "cni.cfg" (builtins.toJSON cfg.cniConfig); |
This file contains 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
{ deployment }: | |
let | |
network = (import deployment).network; | |
pkgs = network.pkgs; | |
option = with pkgs.lib; mkOption { | |
type = types.listOf types.attrs; | |
}; | |
merge = item: pkgs.lib.recursiveUpdate item { |
OlderNewer