Skip to content

Instantly share code, notes, and snippets.

View dniel's full-sized avatar
🤓
Working

Daniel Nord dniel

🤓
Working
View GitHub Profile
private static final Logger LOGGER = LoggerFactory.getLogger(BoostResource.class);
private final SomethingCommandHandler handler;
@Autowired
public SomeResource(SomethingCommandHandler handler) {
this.handler = handler;
}
@RequestMapping(value = "/api", method = RequestMethod.POST)
public ResponseEntity<Object> api(@RequestBody RequestValues request) {
{
"appConfig": {},
"expectedArtifacts": [
{
"defaultArtifact": {
"kind": "custom"
},
"displayName": "index.docker.io/dniel/forwardauth",
"id": "1bbe4929-b3c6-4d39-9d23-1bddf7e10d69",
"matchArtifact": {
@dniel
dniel / traefik.toml
Created May 9, 2019 07:18
TCP/SSL passthrough with traefik 2.0 and file provider
[Global]
Debug = true
CheckNewVersion = false
SendAnonymousUsage = false
[entrypoints]
[entrypoints.https]
address = ":443"
TASK [bootstrap-os : Bootstrap | Check if we need to install pip] ********************************************************************************************************************************
ok: [pknode3] => {"changed": false, "cmd": "pip3 --version", "delta": "0:00:00.011854", "end": "2019-01-09 19:37:14.160297", "failed_when_result": false, "msg": "non-zero return code", "rc": 127, "start": "2019-01-09 19:37:14.148443", "stderr": "/opt/bin/pip3: line 3: /opt/bin/pypy3/bin/pip3: No such file or directory", "stderr_lines": ["/opt/bin/pip3: line 3: /opt/bin/pypy3/bin/pip3: No such file or directory"], "stdout": "", "stdout_lines": []}
ok: [pknode2] => {"changed": false, "cmd": "pip3 --version", "delta": "0:00:00.011838", "end": "2019-01-09 19:37:14.246686", "failed_when_result": false, "msg": "non-zero return code", "rc": 127, "start": "2019-01-09 19:37:14.234848", "stderr": "/opt/bin/pip3: line 3: /opt/bin/pypy3/bin/pip3: No such file or directory", "stderr_lines": ["/opt/bin/pip3: line 3: /opt/bin/pypy3/
@dniel
dniel / gist:3d03a08da54c8461611d3142a31bc3bf
Created September 14, 2018 13:02
Updated traefik toml
debug = false
checkNewVersion = false
[entryPoints]
[entryPoints.http]
address = ":4032"
[entryPoints.dash]
address = ":8081"
debug = true
checkNewVersion = false
[entryPoints]
[entryPoints.http]
address = ":80"
[accessLog]
[web]
@dniel
dniel / msys_hetzner-etc_network_interfaces
Created January 2, 2017 21:37 — forked from jpawlowski/msys_hetzner-etc_network_interfaces
Debian network configuration for Proxmox VE server running on a Hetzner host
# /etc/network/interfaces
#
auto lo
iface lo inet loopback
# device: eth0
iface eth0 inet manual
# IPv4 bridge
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!)