Provide override.conf.sample as a template for customizing systemd environment paths. Changes: - Rename override.conf to override.conf.sample with placeholders and comments - Update README to instruct copying the sample
14 lines
No EOL
614 B
Text
14 lines
No EOL
614 B
Text
# Sample systemd drop-in configuration for email_forwarder.service
|
|
# Copy this file to override.conf and customize the paths for your environment.
|
|
# For Linux: Set PROJECT_DIR to your project path, ENV_FILE to ./relative/path
|
|
# For NixOS: Set PROJECT_DIR to /var/lib/email_forwarder, ENV_FILE to /etc/email_forwarder/.env
|
|
|
|
[Service]
|
|
# Path to the email forwarder project directory
|
|
Environment=PROJECT_DIR=/path/to/your/email_forwarder
|
|
|
|
# Path to the .env file (default: ./.env relative to PROJECT_DIR)
|
|
Environment=ENV_FILE=./.env
|
|
|
|
# Load environment variables from the .env file
|
|
EnvironmentFile=${PROJECT_DIR}/.env |