mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
lamo i screwed trust proxy
This commit is contained in:
parent
a251f8a532
commit
cc681085c6
2
index.ts
2
index.ts
|
@ -8,7 +8,7 @@ import HashMap = require('hashmap');
|
||||||
import { IPGeoJson } from './ip_geo';
|
import { IPGeoJson } from './ip_geo';
|
||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
app.enable('trust-proxy');
|
app.enable('trust proxy');
|
||||||
var cache = new HashMap();
|
var cache = new HashMap();
|
||||||
|
|
||||||
app.engine('handlebars', expresshb({ defaultLayout: 'main' }));
|
app.engine('handlebars', expresshb({ defaultLayout: 'main' }));
|
||||||
|
|
Loading…
Reference in a new issue