On Mon, Feb 06, 2023 at 08:39:04AM +0300, Maksim Rodin wrote:
> Hello,
> After taking closer look at sogo I found out that it does not log real
> ip of the client.
> I set up the nginx just as it is it pkg-readme:
> ...
> location ^~/SOGo
This looks odd, and I can't check right now, but I don't think it
matches "/SOGo/..." URLs. Shouldn't this be "location ~ ^/SOGo"?
> {
> proxy_pass http://127.0.0.1:20000;
> proxy_redirect http://127.0.0.1:20000 default;
> # forward user's IP address
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header Host $host;
> proxy_set_header x-webobjects-server-protocol HTTP/1.0;
> proxy_set_header x-webobjects-remote-host 127.0.0.1;
> proxy_set_header x-webobjects-server-name $server_name;
> proxy_set_header x-webobjects-server-url $scheme://$host;
> proxy_set_header x-webobjects-server-port $server_port;
> ...
>
> But the only ip I see in sogo.log is 127.0.0.1:
> ...
> Feb 06 08:18:52 sogod [5233]: <0x0x1314c787188[SOGoCache]> Cache cleanup
> interval set every 300.000000 seconds
> Feb 06 08:18:52 sogod [5233]: <0x0x1314c787188[SOGoCache]> Using host(s)
> 'localhost' as server(s)
> Feb 06 08:18:52 sogod [5233]: [WARN] <0x0x13205ef07e8[SOGoWebDAVAclManager]>
> entry '{DAV:}write' already exists in DAV permissions table
> Feb 06 08:18:52 sogod [5233]: [WARN] <0x0x13205ef07e8[SOGoWebDAVAclManager]>
> entry '{DAV:}write-properties' already exists in DAV permissions table
> Feb 06 08:18:52 sogod [5233]: [WARN] <0x0x13205ef07e8[SOGoWebDAVAclManager]>
> entry '{DAV:}write-content' already exists in DAV permissions table
> Feb 06 08:18:52 sogod [5233]: 127.0.0.1 "GET
> /SOGo/so/[email protected]/Calendar/alarmslist?browserTime=1675660780
> HTTP/1.1" 200 63/0 0.721 - - -
> Feb 06 08:18:53 sogod [39052]: <0x0x1316e725408[NGImap4Client]> TLS started
> successfully.
> Feb 06 08:18:53 sogod [39052]: 127.0.0.1 "POST
> /SOGo/so/[email protected]/Mail/0/folderINBOX/changes HTTP/1.1" 200 21/126
> 1.279 - - -
> Feb 06 08:19:07 sogod [39052]: 127.0.0.1 "GET
> /SOGo/so/[email protected]/Contacts/view HTTP/1.1" 200 21189/0 0.346 88239
> 75% -
> Feb 06 08:19:08 sogod [39052]: [WARN] <0x0x131f5640948[SOGoWebDAVAclManager]>
> entry '{DAV:}write' already exists in DAV permissions table
> Feb 06 08:19:08 sogod [39052]: [WARN] <0x0x131f5640948[SOGoWebDAVAclManager]>
> entry '{DAV:}write-properties' already exists in DAV permissions table
> Feb 06 08:19:08 sogod [39052]: [WARN] <0x0x131f5640948[SOGoWebDAVAclManager]>
> entry '{DAV:}write-content' already exists in DAV permissions table
> Feb 06 08:19:08 sogod [39052]: 127.0.0.1 "GET
> /SOGo/so/[email protected]/Calendar/alarmslist?browserTime=1675660796
> HTTP/1.1" 200 63/0 0.022 - - -
> Feb 06 08:19:08 sogod [39052]: 127.0.0.1 "POST
> /SOGo/so/[email protected]/Contacts/645D-63DD1280-5-5CF5F100/view HTTP/1.1"
> 200 522/46 0.027 - - -
> Feb 06 08:19:08 sogod [5233]: <0x0x13173c7b808[NGImap4Client]> TLS started
> successfully.
> Feb 06 08:19:08 sogod [39052]: 127.0.0.1 "GET
> /SOGo/so/[email protected]/Contacts/645D-63DD1280-5-5CF5F100/645D-63DD1280-7-5CF5F100.vcf/view
> HTTP/1.1" 200 167/0 0.030 - - -
> Feb 06 08:19:08 sogod [5233]: 127.0.0.1 "POST
> /SOGo/so/[email protected]/Mail/0/folderINBOX/changes HTTP/1.1" 200 21/126
> 0.342 - - -
> Feb 06 08:19:17 sogod [5233]: SOGoUserHomePage user '[email protected]'
> logged off
> Feb 06 08:19:17 sogod [5233]: 127.0.0.1 "GET
> /SOGo/so/[email protected]/logoff HTTP/1.1" 302 0/0 0.060 - - -
> Feb 06 08:19:17 sogod [5233]: 127.0.0.1 "GET /SOGo/so/ HTTP/1.1" 200 12347/0
> 0.114 45323 72% -
> ...
>
> Is there something I forgot to set up?
>
> --
> Maksim Rodin
>
--