View Configuration Files
The configuration file structure of ServBay is clear, with all files centralized in the /Applications/ServBay/etc
directory and categorized according to different services and versions. This document details how to locate and manage configuration files for different services.
Important Note
Please do not manually modify configuration files. All configuration files are automatically generated by ServBay, and manual modifications may be overwritten. Please make changes via the UI interface.
Directory Structure Overview
ServBay's configuration files are primarily located in the following directories:
/Applications/ServBay/etc
: Main configuration file directory containing most service configuration files./Applications/ServBay/db/postgresql
: Configuration file directory for the PostgreSQL database service.
Service Configuration Files
PostgreSQL
PostgreSQL configuration files are located in the etc
directory, categorized by PostgreSQL version. For example, configuration files for PostgreSQL 16 can be found in:
/Applications/ServBay/etc/postgresql/16
In this directory, you can find the main PostgreSQL configuration files, such as postgresql.conf
.
Additionally, files like pg_hba.conf
and pg_ident.conf
are located in the db
directory, such as:
/Applications/ServBay/db/postgresql/16
OpenSSL
OpenSSL configuration files are located in the package/common/openssl
directory, also managed by version. For example, configuration files for OpenSSL 3.2 can be found in:
/Applications/ServBay/package/common/openssl/3.2
In this directory, you can find the main OpenSSL configuration files, such as openssl.cnf
.
Other Services
Configuration files for other services are typically located under the /Applications/ServBay/etc
directory and categorized by service name and version. For example, Caddy's configuration files are located in:
/Applications/ServBay/etc/caddy
In this directory, you can find Caddy's main configuration files, such as Caddyfile
and other related files.
Locating and Managing Configuration Files
ServBay provides a flexible way to manage configurations. You can locate and manage configuration files using the following steps:
Navigate to the Configuration File Directory: Use command line tools or a file manager to navigate to the respective configuration file directory. For example, to view PostgreSQL 16 configuration files:
bashcd /Applications/ServBay/etc/postgresql/16
1Edit Configuration Files: Use a text editor (such as
vim
,nano
, orgedit
) to open and edit configuration files. For example, to edit PostgreSQL’spostgresql.conf
file:bashvim postgresql.conf
1Restart Services: After modifying configuration files, restart the respective services for changes to take effect. This can be done via ServBay's management interface or the
servbayctl
command line tool. For example, to restart the PostgreSQL service:bashservbayctl restart postgresql 16
1
Summary
ServBay has a well-organized configuration file structure, making it easy to locate and manage files. Main configuration files are centralized in the /Applications/ServBay/etc
directory and categorized by service and version. Configuration files for services like PostgreSQL and OpenSSL are located in the db
and package/common
directories, respectively. With a reasonable directory structure and flexible management tools, users can easily locate, edit, and manage ServBay's configuration files.