-
Notifications
You must be signed in to change notification settings - Fork 4
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
Logs? #11
Comments
I'm not sure what kinds of logs you're expecting to see. What's your config? What do you see in your logs? |
My realip config is I've modified it for testing with: realip { and I cannot reach my webservice from Cloudflare but from my local network which is fine. Here are my logs: {"level":"info","ts":1651171517.293661,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["myserver.fr","acme.roadrunner"]} |
Is that your entire config? I don't think you've actually enabled access logging. You need to use https://caddyserver.com/docs/caddyfile/directives/log Also, turn on the |
Alright I see them with debug. |
What logs? I'm not clear on what you're talking about. Please be specific. |
Sorry. I would like to get a record of the access attempts refused by the realip module with "strict" (IP not matching the conditions). |
Ah okay. Yeah, right now it just triggers a 403 error (which you can handle with Line 227 in 3eaa4a6
But like I said, enable the |
Ok thanks for your guidance. So log ERROR should do the trick. |
Hi.
I am testing your module. It seems to work but I do not see any logs in the caddy logs. Is it normal? Is it a way to see the actions actually performed by the module?
Thank you.
Laurent
The text was updated successfully, but these errors were encountered: