Update environment variable file and service configuration
This commit is contained in:
parent
dd2805b7f0
commit
0df46133be
2 changed files with 3 additions and 8 deletions
|
|
@ -1,11 +1,6 @@
|
|||
# Copy this file to /etc/ANewDawn/ANewDawn.env and fill in the required values.
|
||||
# Make sure the directory is owned by the user running the service (e.g., "lovinator").
|
||||
|
||||
# Discord bot token
|
||||
DISCORD_TOKEN=
|
||||
|
||||
# OpenAI token (for GPT-5 and other OpenAI models)
|
||||
OPENAI_TOKEN=
|
||||
|
||||
# Optional: additional env vars used by your bot
|
||||
# MY_CUSTOM_VAR=
|
||||
OLLAMA_API_KEY=
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ User=lovinator
|
|||
Group=lovinator
|
||||
|
||||
# The project directory containing main.py (update as needed).
|
||||
WorkingDirectory=/home/lovinator/Code/ANewDawn
|
||||
WorkingDirectory=/home/lovinator/ANewDawn/
|
||||
|
||||
# Load environment variables (see systemd/anewdawn.env.example).
|
||||
EnvironmentFile=/etc/ANewDawn/ANewDawn.env
|
||||
|
||||
# Use the python interpreter from your environment (system python is fine if dependencies are installed).
|
||||
ExecStart=/usr/bin/env python3 main.py
|
||||
ExecStart=/usr/bin/uv run main.py
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue