Configuration of Nginx¶
SeaTable automatically generates a default nginx.conf file in the configuration folder. Since version 5.3, we no longer use this file.
The reason for this change is that SeaTable updates often require modifications to the nginx.conf file to support new features. These changes are not customer-specific and can complicate the update process. To simplify updates and ensure stable, maintainable configurations, we now provide a custom nginx.conf file together with the YAML configuration files. This custom file, located in the compose folder (/opt/seatable-compose), is mounted into the container at startup.
As a result, the nginx.conf file in the container’s configuration folder is obsolete.
Customizing Nginx Configuration¶
When you update SeaTable, all default files in /opt/seatable-compose will be overwritten. This includes all changes that you may do in nginx.conf and seatable-server.yml. You should read our guide that explains how to customize the configuration of your instance before proceeding.
To preserve your custom configuration settings, follow these steps:
-
Create a Copy: Make a copy of the
seatable-nginx.conffile (e.g.custom-seatable-nginx.conf) in your compose folder (/opt/seatable-compose). -
Edit the Custom File: Make any necessary changes to your custom NGINX configuration file. Note: All future modifications should be made to this custom file to ensure that your modifications are preserved across version upgrades.
-
Mount the Custom Config File: Create a
custom-seatable-server.ymlfile that contains a volume mount for your custom NGINX file:services: seatable-server: volumes: - ./custom-seatable-nginx.conf:/etc/nginx/sites-enabled/default -
Update the .env File: In your
.envfile, update theCOMPOSE_FILEvariable to include yourcustom-seatable-server.ymlfile (if this is not already the case). -
Apply the Changes: Run
docker compose up -dinside the directory/opt/seatable-composein a terminal for your changes to take effect.
This ensures that your custom configuration is used instead of the original file.