Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libre.sh
compose.libre.sh
Commits
41181f2a
Commit
41181f2a
authored
9 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Patches
Plain Diff
Fixes GeoIP
parent
877a0e2d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dockerfiles/services/piwik/Dockerfile
+4
-0
4 additions, 0 deletions
dockerfiles/services/piwik/Dockerfile
dockerfiles/services/piwik/startup-piwik.sh
+9
-0
9 additions, 0 deletions
dockerfiles/services/piwik/startup-piwik.sh
with
13 additions
and
0 deletions
dockerfiles/services/piwik/Dockerfile
+
4
−
0
View file @
41181f2a
...
...
@@ -11,6 +11,10 @@ RUN apt-get update && apt-get install -y \
unzip piwik.zip
&&
\
mv
/piwik/config /piwik-config
&&
\
sed
-i
's/;always_populate_raw_post_data = -1/always_populate_raw_post_data=-1/g'
/etc/php5/fpm/php.ini
&&
\
cd
/piwik/misc/
&&
\
curl http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
>
GeoLiteCity.dat.gz
&&
\
gunzip
GeoLiteCity.dat.gz
&&
\
mv
GeoLiteCity.dat GeoIPCity.dat
&&
\
sed
-i
's/# exec CMD/# exec CMD\n\/opt\/startup-piwik.sh/g'
/opt/entrypoint.sh
# install nginx piwik config
...
...
This diff is collapsed.
Click to expand it.
dockerfiles/services/piwik/startup-piwik.sh
+
9
−
0
View file @
41181f2a
...
...
@@ -242,3 +242,12 @@ if ! grep -q adapter /piwik/config/config.ini.php; then
sed
-i
'/\[database\]/a adapter=MYSQLI'
/piwik/config/config.ini.php
fi
# Fix IP behind proxy
if
!
grep
-q
proxy_client_headers /piwik/config/config.ini.php
;
then
sed
-i
'/\[General\]/a proxy_client_headers[] = HTTP_X_FORWARDED_FOR'
/piwik/config/config.ini.php
fi
if
!
grep
-q
proxy_host_headers /piwik/config/config.ini.php
;
then
sed
-i
'/\[General\]/a proxy_host_headers[] = HTTP_X_FORWARDED_HOST'
/piwik/config/config.ini.php
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment