Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matomo config file #276

Closed
pixar634 opened this issue Feb 18, 2022 · 2 comments
Closed

Matomo config file #276

pixar634 opened this issue Feb 18, 2022 · 2 comments

Comments

@pixar634
Copy link

How do I access the matomo config file to remove the warning it shows in login page , because of running in some other port.
docker issue
?

current compose file:-

version: '3.7'

services:
app:
image: matomo:4.7-apache
restart: always
volumes:
- data:/var/www/html
environment:
MATOMO_DATABASE-HOST: db
ports:
- 8091:80
depends_on:
- db
db:
image: mysql:5.7
container_name: mysql
volumes:
- db:/var/lib/mysql
restart: always
env_file:
- matomo.env
ports:
- 33061:3306

volumes:
db:
data:

@nepella
Copy link

nepella commented Feb 25, 2022

If your services are running, the simplest would be to use Docker-compose's exec command to run arbitrary commands inside the running container. I believe this would solve your problem:

docker-compose exec app sed -i \
    $'/^\[General\]/ { a trusted_hosts[] = "localhost:8091"\n; :l; n; b l; }' \
    config/config.ini.php

You could also use docker cp to copy the file out of and back into the container; or docker-compose exec with cat and tee.

@J0WI
Copy link
Collaborator

J0WI commented Nov 26, 2022

Blocked by matomo-org/matomo#10257

@J0WI J0WI closed this as completed Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants