-
Notifications
You must be signed in to change notification settings - Fork 230
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
[Feature Request]: Record the requesting end IP in the log #167
Comments
Thanks for contacting us. |
My logs are all 127.0.0.1: This is my front-end web server settings, I use caddy:
Does caddy need to set up more details to achieve its goal? |
Oh I see! The code uses gorilla.CombinedLoggingHandler to print out the log. I believe the developers of Gorilla library don’t intend to change this behavior due to security concerns. |
ah, just do it when you want to do it. |
Thank you for understanding! |
Okey, i will try it! |
Oh I found it! https://github.com/m13253/dns-over-https/blob/master/doh-server/doh-server.conf#L53 Have you tried it out? |
I use it with docker, but when I mount the config file and restart the container after modifying the config file, the configuration file will become the file before the modification. . . Is it a problem with the docker image? There are my docker-compose file:
|
Try this: volumes:
- ./config/doh-server/doh-server.conf:/doh-server.conf I’m not sure if this is the fix, but worth trying it. |
Looks like you are using a Docker image provided by |
Hi @wx2020, Mounting the custom Corrected volume mount line:
Additionally, in the next release of the container image, I’ll be adding environment configuration variables for the following DoH config keys:
|
Hi bro,
Thank you very much for your work!
Is there any chance to log the request to the log file? Maybe an environment variable option can be provided.
Hope to get your reply~
The text was updated successfully, but these errors were encountered: