mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2998] Help with Log Settings #2047
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2047
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lucassvasconcelos on GitHub (Jun 13, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2998
Some log settings in NPM are not very clear to me, as the project's documentation doesn't provide any information about them. I've searched around and found out that the logs are located in files within the "data/logs" folder.
I would like to have a better understanding of how these files are managed to avoid compromising the disk capacity of my server. Additionally, I'm curious to know if it's possible to change the logging mode.
Here are the summarized questions regarding my doubts:
By default, NPM write files for each proxy host. Are these files deleted after a certain period of time?
Is it possible to stop writing these files? If so, is there a way to have all these logs written to the container's console?
@molenear commented on GitHub (Jun 13, 2023):
In the docker config, under volumes, change the line
to
Then make sure that other folder is on a different partition than the OS.
@lucassvasconcelos commented on GitHub (Jun 16, 2023):
Thank you for the response!
Okay, that's fine! That would solve the disk space issue on the main OS. However, I would still need to manage the deletion of files on the other partition.
Is there any way to stop writing files and display the logs on the container's console?
@Temetra commented on GitHub (Jul 15, 2023):
Nginx doesn't seem to like changing
access_logwhen it's already set. I'm working around it by making a copy of the proxy_host.conf template, and overriding the container version using volumes:You'll need to refresh your proxy .conf files after restarting your container. You can do this by disabling, and re-enabling the proxy hosts.
@hirenshah commented on GitHub (Oct 9, 2023):
@Temetra Thanks for the details. I wanted to disable access_log and name the error_log by server_name rather than some arbitrary database index. Whilst the workaround isn't ideal, it seems to be the best workaround available :)
@Geczy commented on GitHub (Jan 6, 2024):
you can simply do this, it works because advanced_config comes after the access_log entry in the proxy_host.conf file, so the latter takes precedence
unfortunately i found this out by moving a high volume server to NPM and waking up to the server being disabled from completely filling up my storage space
https://github.com/NginxProxyManager/nginx-proxy-manager/assets/1036968/c7a8f164-b175-4c69-930b-fc63c9cad1cf
@github-actions[bot] commented on GitHub (Jul 23, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@JeffChien commented on GitHub (Feb 18, 2025):
I have the same need, I add settings to
/data/nginx/custom/server_proxy.confto turn off the all access log, to much access log can easily kill my raspberry pi's SD card@github-actions[bot] commented on GitHub (Sep 12, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@Svznify commented on GitHub (Sep 28, 2025):
👍