forked from fiorix/freegeoip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
freegeoip.conf
44 lines (37 loc) · 1.46 KB
/
freegeoip.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<Server debug="true" debugsrv="127.0.0.1:1905">
<!-- Default HTTP server. -->
<Listen addr=":8080" log="true" xheaders="false"/>
<!-- Listen on other ports or unix sockets simultaneously. -->
<!-- <Listen addr="/tmp/freegeoip" log="true" xheaders="true"/> -->
<!-- Listen on HTTPS.
Run the following to generate a self-signed certificate:
go run $GOROOT/src/pkg/crypto/tls/generate_cert.go -host localhost
-->
<!--
<Listen addr=":8090" log="true">
<CertFile>./cert.pem</CertFile>
<KeyFile>./key.pem</KeyFile>
</Listen>
-->
<!-- Directory with the public website. -->
<DocumentRoot>./static</DocumentRoot>
<!-- Allow DNS lookups? e.g. /json/domain.com
If MaxConcurrent is reached DNS resolutions fail immediately. -->
<DNS Enabled="true" Timeout="5s" MaxConcurrent="500"/>
<!-- IP database.
Make sure the database exists before starting the server. -->
<IPDB File="./db/ipdb.sqlite" CacheSize="51200"/>
<!-- Server limits, configuration of quota per remote IP.
Set MaxRequests to 0 to disable quota. -->
<Limit MaxRequests="0" Expire="3600"/>
<!-- Redis is an optional method for managing quota. -->
<Redis>
<!-- <Addr>127.0.0.1:6379</Addr> -->
<!-- Balance between multiple servers (tcp or unix socket): -->
<!-- <Addr>10.0.0.1:6379</Addr> -->
<!-- <Addr>10.0.0.2:6379</Addr> -->
<!-- <Addr>/tmp/redis.sock</Addr> -->
<!-- <Addr>/var/run/redis/redis.sock</Addr> -->
</Redis>
</Server>