Files
houseme b3ec2325ed improve docker comprose config file and remove docs dir (#174)
* refactor(config): Unify S3 API and Console ports

This commit streamlines the server configuration by unifying the S3 API and the WebUI (Console) to serve on a single port.

Previously, the console was managed by separate configuration options (`RUSTFS_CONSOLE_ENABLE` and `RUSTFS_CONSOLE_ADDRESS`), requiring a distinct port. This added complexity to deployment and configuration.

With this change:
- The `RUSTFS_CONSOLE_ADDRESS` and `RUSTFS_CONSOLE_FS_ENDPOINT` environment variables are removed.
- The WebUI is now always available and served directly from the main application port defined by `RUSTFS_ADDRESS`.
- This simplifies setup, reduces the number of exposed ports, and makes the application easier to manage and deploy, especially in containerized environments.

Users should update their startup scripts and remove the deprecated `RUSTFS_CONSOLE_*` variables.

* improve docker comprose config file and remove docs dir
2025-07-11 16:55:24 +08:00
..

Certs

Generate a self-signed certificate

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes

Generate a self-signed certificate with a specific subject

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes \
  -subj "/C=US/ST=California/L=San Francisco/O=My Company/CN=mydomain.com"

Generate a self-signed certificate with a specific subject and SAN

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes \
  -subj "/C=US/ST=California/L=San Francisco/O=My Company/CN=mydomain.com" \
  -addext "subjectAltName=DNS:mydomain.com,DNS:www.mydomain.com"

Generate a self-signed certificate with a specific subject and SAN (multiple SANs)

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes \
  -subj "/C=US/ST=California/L=San Francisco/O=My Company/CN=mydomain.com" \
  -addext "subjectAltName=DNS:mydomain.com,DNS:www.mydomain.com,DNS:api.mydomain.com"

TLS File

cd deploy/certs/ 
ls -la
  ├── rustfs_cert.pem        // Defaultfallback certificate
  ├── rustfs_key.pem         // Defaultfallback private key
  ├── rustfs.com/    // certificate directory of specific domain names
  │   ├── rustfs_cert.pem
  │   └── rustfs_key.pem
  ├── api.rustfs.com/
  │   ├── rustfs_cert.pem
  │   └── rustfs_key.pem
  └── cdn.rustfs.com/
      ├── rustfs_cert.pem
      └── rustfs_key.pem