From bb8f3627f4264f48c33cb3287ebac28a3bbe64b6 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 16 Jan 2024 20:42:20 +0100 Subject: [PATCH] move settings to the config file --- conf/server.yml | 3 +++ conf/systemd.service | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/server.yml b/conf/server.yml index cdade67..c47da2f 100644 --- a/conf/server.yml +++ b/conf/server.yml @@ -3,6 +3,9 @@ # Please refer to the documentation at https://ntfy.sh/docs/config/ for details. # All options also support underscores (_) instead of dashes (-) to comply with the YAML spec. +base-url: "https://__DOMAIN__" +listen-http: "127.0.0.1:__PORT__" + cache-file: __INSTALL_DIR__/data/cache.db cache-startup-queries: | pragma journal_mode = WAL; diff --git a/conf/systemd.service b/conf/systemd.service index 793ff90..6695ed8 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -3,9 +3,6 @@ Description=ntfy server After=network.target [Service] -Environment="NTFY_LISTEN_HTTP=localhost:__PORT__" -Environment="NTFY_BASE_URL=https://__DOMAIN__" -Environment="NTFY_BEHIND_PROXY=1" Environment="NTFY_CONFIG_FILE=__INSTALL_DIR__/server.yml" Type=simple