Hello , Thanks for your sharing . How can I collect access logs because I want to know who have accessed my server , and I want to know their IP address, please help
@jc21
Not sure, but I think you can mount a host directory to /var/log/nginx. For instance:
docker run -d \
--name nginx-proxy-manager-app \
-p 80:80 \
-p 81:81 \
-p 443:443 \
-v /path/to/config.json:/app/config/production.json \
-v /path/to/logs:/var/log/ninx \
-v /path/to/data:/data \
-v /path/to/letsencrypt:/etc/letsencrypt \
jc21/nginx-proxy-manager:latest-armhf
The access logs for each host created by NPM is available in the data directory you should be mounting. eg data/logs/proxy_host-10.log
Any idea where I can find these log files in Hassio addon?
@ncm-lfc searching for the same. Have you found the logs?
@ncm-lfc @b2az Did you find them?
Most helpful comment
The access logs for each host created by NPM is available in the
datadirectory you should be mounting. egdata/logs/proxy_host-10.log