mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Configure MATOMO from the environment
We try to be a 12factor app right? :-)
This commit is contained in:
parent
f2ad141e32
commit
d61b4253df
3 changed files with 22 additions and 18 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,7 +2,6 @@
|
|||
config/application.rb
|
||||
config/config.yml
|
||||
config/secrets.yml
|
||||
config/piwik.yml
|
||||
/vendor/cache
|
||||
/vendor/cache-old
|
||||
/storage/*
|
||||
|
|
|
|||
|
|
@ -9,25 +9,22 @@
|
|||
# id_site
|
||||
# The id of your website inside Piwik
|
||||
#
|
||||
|
||||
default: &default
|
||||
id_site: <%= ENV['OSEM_PIWIK_ID'] %>
|
||||
url: <%= ENV['OSEM_PIWIK_URL'] %>
|
||||
use_async: <%= ENV['OSEM_PIWIK_ASYNC'] || false %>
|
||||
disabled: <%= ENV['OSEM_PIWIK_DISABLED'] || true %>
|
||||
hostname: <%= ENV['OSEM_PIWIK_HOSTNAME'] || 'localhost' %>
|
||||
|
||||
production:
|
||||
piwik:
|
||||
id_site: 1
|
||||
url: localhost
|
||||
use_async: false
|
||||
disabled: false
|
||||
<<: *default
|
||||
|
||||
development:
|
||||
piwik:
|
||||
id_site: 1
|
||||
url: localhost
|
||||
disabled: true
|
||||
use_async: false
|
||||
hostname: localhost
|
||||
<<: *default
|
||||
|
||||
test:
|
||||
piwik:
|
||||
id_site: 1
|
||||
url: localhost
|
||||
disabled: true
|
||||
use_async: false
|
||||
hostname: localhost
|
||||
<<: *default
|
||||
|
|
@ -70,9 +70,12 @@
|
|||
# STRIPE_PUBLISHABLE_KEY=1234
|
||||
# STRIPE_SECRET_KEY=5678
|
||||
|
||||
# Disable linting of factories in the test suite.
|
||||
# Speeds up turn around times of tests
|
||||
# OSEM_FACTORY_LINT=false
|
||||
# MATOMO/PIWIK CONFIGURATION
|
||||
# OSEM_PIWIK_ID=12345
|
||||
# OSEM_PIWIK_URL=localhost
|
||||
# OSEM_PIWIK_ASYNC=false
|
||||
# OSEM_PIWIK_DISABLED=true
|
||||
# OSEM_PIWIK_HOSTNAME=localhost
|
||||
|
||||
# The smtp configuration. See the rails guides for more
|
||||
# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
|
||||
|
|
@ -104,3 +107,8 @@
|
|||
# Your skylight.io keys
|
||||
# SKYLIGHT_AUTHENTICATION=1234
|
||||
# SKYLIGHT_PUBLIC_DASHBOARD_URL='https://oss.skylight.io/app/applications/xxxxxxxxxxxx'
|
||||
|
||||
# Disable linting of factories in the test suite.
|
||||
# Speeds up turn around times of tests
|
||||
# OSEM_FACTORY_LINT=false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue