Kumi
13a771214a
Updated README with detailed instructions for setting environment variables via a .env file. Added sample Caddyfile for reverse proxy configuration and systemd service files for managing the tracker and application. These enhancements streamline deployment, especially in production environments, by providing clear guidance and automation options. Resolves #1
27 lines
574 B
Desktop File
27 lines
574 B
Desktop File
[Unit]
|
|
Description=Transfer.coffee
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
RestartSec=2s
|
|
Type=simple
|
|
|
|
# Replace this with the user you want to run as
|
|
User=transfercoffee
|
|
Group=transfercoffee
|
|
|
|
# Replace /opt/transfer.coffee with where you cloned the repo to
|
|
WorkingDirectory=/opt/transfer.coffee
|
|
ExecStart=/usr/bin/npm run start
|
|
|
|
# Create a .env file in the root of the project with the environment variables (see README.md)
|
|
EnvironmentFile = /opt/transfer.coffee/.env
|
|
|
|
Restart=always
|
|
RestartSec=86400s
|
|
|
|
LimitNOFILE=infinity
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|