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.
|
# 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").
|
# Make sure the directory is owned by the user running the service (e.g., "lovinator").
|
||||||
|
|
||||||
# Discord bot token
|
|
||||||
DISCORD_TOKEN=
|
DISCORD_TOKEN=
|
||||||
|
|
||||||
# OpenAI token (for GPT-5 and other OpenAI models)
|
|
||||||
OPENAI_TOKEN=
|
OPENAI_TOKEN=
|
||||||
|
OLLAMA_API_KEY=
|
||||||
# Optional: additional env vars used by your bot
|
|
||||||
# MY_CUSTOM_VAR=
|
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,13 @@ User=lovinator
|
||||||
Group=lovinator
|
Group=lovinator
|
||||||
|
|
||||||
# The project directory containing main.py (update as needed).
|
# 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).
|
# Load environment variables (see systemd/anewdawn.env.example).
|
||||||
EnvironmentFile=/etc/ANewDawn/ANewDawn.env
|
EnvironmentFile=/etc/ANewDawn/ANewDawn.env
|
||||||
|
|
||||||
# Use the python interpreter from your environment (system python is fine if dependencies are installed).
|
# 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
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue