Skip to content

Instantly share code, notes, and snippets.

View filippomortari's full-sized avatar
:shipit:
ship it!

Filippo Mortari filippomortari

:shipit:
ship it!
View GitHub Profile
@filippomortari
filippomortari / CustomRequestLogFactory.java
Last active November 23, 2016 11:05
a custom logger for Dropwizard apps to output correlation ids in request logs
package com.filippomortari;
import ch.qos.logback.classic.*;
import ch.qos.logback.classic.spi.*;
import ch.qos.logback.core.*;
import ch.qos.logback.core.spi.*;
import com.google.common.collect.ImmutableList;
import io.dropwizard.jetty.*;
import io.dropwizard.jetty.Slf4jRequestLog;
import io.dropwizard.logging.*;
@filippomortari
filippomortari / nginx-ssl-localhost.conf
Last active October 13, 2016 17:58
playing locally with ansible and nginx
server {
listen 80;
server_name {{ server_name }};
return 301 https://{{ server_name }}$request_uri;
}
server {
listen 443;
listen [::]:80 default_server ipv6only=on;