Skip to content

Commit

Permalink
Moving the timezone offset map to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
fcambus committed Jul 15, 2014
1 parent 6cbc47a commit 26323cf
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 421 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@ Telize requires the free GeoLite databases : http://dev.maxmind.com/geoip/legacy

## Installation

Copy `timezone.conf` in the Nginx configuration files directory.
Copy `timezone.conf` and `timezone-offset.conf` in the Nginx configuration files directory.

Edit `nginx.conf` to include `timezone.conf` and to add directives specifying
the path to the GeoIP database files, within the http block.
Edit `nginx.conf` to include `timezone.conf`, `timezone-offset.conf` and to add directives specifying the path to the GeoIP database files, within the http block.

#### For IPv4 support only :

Expand Down
3 changes: 2 additions & 1 deletion gen_tz-offset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
require 'tzinfo'

# open file
tz_hdl = File.new('tz_offset.conf','w')
tz_hdl = File.new('timezone-offset.conf','w')

# header
tz_hdl.write("map $geoip_timezone $geoip_timezone_offset {\n")

Expand Down
Loading

0 comments on commit 26323cf

Please sign in to comment.