Re: [SOGo] SOGo Documentation for the version that uses nginx

2024-01-29 Thread Odhiambo Washington
Because someone will ask this question another day, let me post this here,
hoping the person who finds it will figure out the rest.


nano /etc/nginx/conf.d/mail.example.org.conf (or
/etc/nginx/sites-available/mail.example.org.conf  and then symlinking to
sites-enabled)


server {
  server_name mail.example.org;
  root /usr/lib/GNUstep/SOGo/WebServerResources/;
  error_log /var/log/nginx/sogo_error.log;
  access_log /var/log/nginx/sogo_access.log;
  listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/mail.example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mail.example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
add_header Strict-Transport-Security "max-age=31536000" always;
ssl_trusted_certificate /etc/letsencrypt/live/mail.example.org/chain.pem
;
ssl_stapling on;
ssl_stapling_verify on;

  location = / {
rewrite ^ https://$server_name/SOGo/;
allow all;
  }

  location = /principals/ {
rewrite ^ https://$server_name/SOGo/dav;
allow all;
  }

  location ^~/SOGo/ {
proxy_pass "http://127.0.0.1:2;;
proxy_redirect "http://127.0.0.1:2; default;
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.1;
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_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
client_max_body_size 100m;
client_body_buffer_size 128k;
break;
  }

  location /SOGo.woa/WebServerResources/ {
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
allow all;
  }

  location /SOGo/WebServerResources/ {
alias /usr/lib/GNUstep/SOGo/WebServerResources/;
allow all;
  }

  location ^/SOGo/so/ControlPanel/Products/([^/]*)/Resources/(.*)$ {
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
  }

  location
^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$
{
alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2;
  }
}

server {
  server_name mail.example.org;
  listen 80;
  error_log /var/log/nginx/sogo_error.log;
  access_log /var/log/nginx/sogo_access.log;
  if ($host = mail.example.org) {
  return 301 https://$host$request_uri;
  }
}



>

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]


Re: [SOGo] SOGo Documentation for the version that uses nginx

2024-01-23 Thread Odhiambo Washington
 Karibu sana ndugu.
I'm very glad to hear that I helped.

On Tue, Jan 23, 2024, 21:00 "Michael Callum Mayaka"  wrote:

> Thank you, it seems that's the way I'd installed it - you've solved my
> issue, and glad do see a fellow Kenyan (though I'm based in London).
> Asante sana, mukubwa
>
> On Tuesday, January 23, 2024 15:48 GMT, "Odhiambo Washington" (
> odhia...@gmail.com)  wrote:
>
>
>
>
> On Tue, Jan 23, 2024 at 6:35 PM "Michael"  wrote:
>
>> Hello,
>>
>> I am running SOGo on a Debian 11 server, and when I installed it I used a
>> package I can't seem to find now which required a separate server and
>> installed SOGo and all the associated packages with nginx as the web
>> server,
>> rather than Apache2.  I am trying to find documentation as I need to
>> reconfigure my SSL certificates after changing domain names, and need
>> Exchange
>> ActiveSync to work (I need users to be able to connect and sync on their
>> devices and desktop apps with no SSL/certificate errors.
>>
>> I would be most grateful if anyone could point me in the right direction
>> or
>> give me advice how to do this.
>>
>> Kind regards,
>>
>> Michael
>
>
> Borrow from iRedmail -
> https://forum.iredmail.org/topic19176-iredmail-nginx-proxy-problem-with-sogo-log-in.html
>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
>  In an Internet failure case, the #1 suspect is a constant: DNS.
> "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
> [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
>
>
>
>


Re: [SOGo] SOGo Documentation for the version that uses nginx

2024-01-23 Thread "Michael Callum Mayaka"

Thank you, it seems that's the way I'd installed it - you've solved my issue, 
and glad do see a fellow Kenyan (though I'm based in London).  Asante sana, 
mukubwa

On Tuesday, January 23, 2024 15:48 GMT, "Odhiambo Washington" 
(odhia...@gmail.com)  wrote:
   On Tue, Jan 23, 2024 at 6:35 PM "Michael"  wrote:Hello,

I am running SOGo on a Debian 11 server, and when I installed it I used a
package I can't seem to find now which required a separate server and
installed SOGo and all the associated packages with nginx as the web server,
rather than Apache2.  I am trying to find documentation as I need to
reconfigure my SSL certificates after changing domain names, and need Exchange
ActiveSync to work (I need users to be able to connect and sync on their
devices and desktop apps with no SSL/certificate errors.

I would be most grateful if anyone could point me in the right direction or
give me advice how to do this.

Kind regards,

Michael Borrow from iRedmail - 
https://forum.iredmail.org/topic19176-iredmail-nginx-proxy-problem-with-sogo-log-in.html
  -- Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect 
is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)[How to ask smart questions: 
http://www.catb.org/~esr/faqs/smart-questions.html]

 


Re: [SOGo] SOGo Documentation for the version that uses nginx

2024-01-23 Thread Odhiambo Washington
On Tue, Jan 23, 2024 at 6:35 PM "Michael"  wrote:

> Hello,
>
> I am running SOGo on a Debian 11 server, and when I installed it I used a
> package I can't seem to find now which required a separate server and
> installed SOGo and all the associated packages with nginx as the web
> server,
> rather than Apache2.  I am trying to find documentation as I need to
> reconfigure my SSL certificates after changing domain names, and need
> Exchange
> ActiveSync to work (I need users to be able to connect and sync on their
> devices and desktop apps with no SSL/certificate errors.
>
> I would be most grateful if anyone could point me in the right direction or
> give me advice how to do this.
>
> Kind regards,
>
> Michael
>

Borrow from iRedmail -
https://forum.iredmail.org/topic19176-iredmail-nginx-proxy-problem-with-sogo-log-in.html


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
 In an Internet failure case, the #1 suspect is a constant: DNS.
"Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
[How to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html]


[SOGo] SOGo Documentation for the version that uses nginx

2024-01-23 Thread "Michael"
Hello,

I am running SOGo on a Debian 11 server, and when I installed it I used a
package I can't seem to find now which required a separate server and
installed SOGo and all the associated packages with nginx as the web server,
rather than Apache2.  I am trying to find documentation as I need to
reconfigure my SSL certificates after changing domain names, and need Exchange
ActiveSync to work (I need users to be able to connect and sync on their
devices and desktop apps with no SSL/certificate errors.

I would be most grateful if anyone could point me in the right direction or
give me advice how to do this.

Kind regards,

Michael