-
Hello, I manage a public SearXNG instance through Docker and would like to harden it a bit. I use LinuxServer/Docker-Swag as a reverse proxy and would like to protect SearXNG with Fail2ban, which is included in the reverse-proxy container. In order to do that, I would need to create a volume for Swag to access the log file. That log file being in the Docker directory, it would be quite dirty to link it as a volume to Swag. Is there any way to write the log of SearXNG as a file in a dedicated place ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So, I have solved the problem by
I leave here the code that I set up in that aim, in case someone would be interested. I welcome any constructive comments.
The service unit file
The Fail2ban filter
The Fail2ban jail
|
Beta Was this translation helpful? Give feedback.
So, I have solved the problem by
I leave here the code that I set up in that aim, in case someone would be interested. I welcome any constructive comments.
The executable file for the Systemd service
The service u…