1

Topic: Optimisation suggestion on Nginx.conf

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? Download
- Linux/BSD distribution name and version: FreeBSD 12.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

  I am trying to get Nginx to be the webserver just to have static pages and host image files for my email signatures.
  I use for a few personal domains and, I do not use Netdata and Sogo.

A suggestion:
  If the user does not flag to install RoundCube, Netdata or Sogo, then the `00-default-ssl.conf` could have the respective `include` commented out.
E.G.:

    include /usr/local/etc/nginx/templates/ireadmin.tmpl
#   include /usr/local/etc/nginx/templates/sogo.tmpl

  I understand that there are extra coding, effort and ramifications. It is also likely that this has surfaced before.
  I bring it up again as even if there is no impact on Nginx performance, maybe there is some benefit on the security, as less `locations` will be declared.

OFF-TOPIC 1:
  If someone could provide some suggestions on a safe and straightforward way to implement the web server, it is appreciated. Again, it is the same domain, a simple static page and files: no multi-domain, no sub-domain, just a homepage.

OFF-TOPIC 2:
  I trust the efforts to migrate the code to Python 3 are coming along. My goal is to install all from scratch when FreeBSD 12.2
is released in late October.

Thanks and stay safe and healthy where ever you are.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.