Add sample drop-in config
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
This commit is contained in:
parent
45b179ede3
commit
acec14553d
3 changed files with 15 additions and 4 deletions
14
email_forwarder.service.d/override.conf.sample
Normal file
14
email_forwarder.service.d/override.conf.sample
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue