From fe558b3f352ed8f0fb249390f46d79012d9eaa3c Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Tue, 10 Mar 2026 17:05:00 +0300 Subject: [PATCH] fixed env file mentions to use noreplace --- .gear/rules | 2 +- lk-jwt-service.env.example | 11 ----------- lk-jwt-service.spec | 6 +++--- 3 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 lk-jwt-service.env.example diff --git a/.gear/rules b/.gear/rules index a78bc28..f87ffff 100644 --- a/.gear/rules +++ b/.gear/rules @@ -1,4 +1,4 @@ tar: @name@ name=@name@-@version@ tar: .gear/predownloaded-development name=@name@-development-@version@ base= copy: lk-jwt-service.service -copy: lk-jwt-service.env.example +copy: lk-jwt-service.env diff --git a/lk-jwt-service.env.example b/lk-jwt-service.env.example deleted file mode 100644 index a5c3438..0000000 --- a/lk-jwt-service.env.example +++ /dev/null @@ -1,11 +0,0 @@ -# Mandatory -LIVEKIT_KEY=YOUR_LIVEKIT_KEY -LIVEKIT_SECRET=YOUR_LIVEKIT_SECRET -LIVEKIT_URL=wss://example.com -# Optional -LIVEKIT_FULL_ACCESS_HOMESERVERS=example.com -# Bind only to localhost when behind reverse proxy (recommended) -LIVEKIT_JWT_BIND=127.0.0.1:8080 - -# Never use in production: -# LIVEKIT_INSECURE_SKIP_VERIFY_TLS=YES_I_KNOW_WHAT_I_AM_DOING diff --git a/lk-jwt-service.spec b/lk-jwt-service.spec index ddb7ac2..85b9828 100644 --- a/lk-jwt-service.spec +++ b/lk-jwt-service.spec @@ -11,7 +11,7 @@ VCS: https://github.com/element-hq/lk-jwt-service Source: %name-%version.tar Source1: %name-development-%version.tar Source2: %name.service -Source3: %name.env.example +Source3: %name.env BuildRequires: golang >= 1.23 Requires: ca-certificates @@ -33,13 +33,13 @@ install -Dpm0755 %name %buildroot%_bindir/%name install -dpm0755 %buildroot%_unitdir install -Dpm0644 %SOURCE2 %buildroot%_unitdir/%name.service install -dpm0755 %buildroot%_sysconfdir/%name -install -Dpm0644 %SOURCE3 %buildroot%_sysconfdir/%name/%name.env.example +install -Dpm0644 %SOURCE3 %buildroot%_sysconfdir/%name/%name.env %files %doc README.md LICENSE LICENSE-COMMERCIAL %_bindir/%name %_unitdir/%name.service -%_sysconfdir/%name/%name.env.example +%config(noreplace) %_sysconfdir/%name/%name.env %changelog * Mon Feb 23 2026 Romenskiy Arseniy 0.4.1-alt1