Compare commits

...

2 commits

Author SHA1 Message Date
fe558b3f35 fixed env file mentions to use noreplace 2026-03-10 17:05:00 +03:00
ea21426c37 fixed service unit dir 2026-03-10 17:02:58 +03:00
3 changed files with 11 additions and 22 deletions

View file

@ -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

View file

@ -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

View file

@ -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
@ -23,23 +23,23 @@ MatrixRTC Authorization Service: issues LiveKit JWTs for MatrixRTC clients.
%setup -a1
%build
go build -trimpath -buildmode=pie -mod=vendor -o %{name} .
go build -trimpath -buildmode=pie -mod=vendor -o %name .
%check
go test -mod=vendor ./...
%install
install -Dpm0755 %name %{buildroot}%{_bindir}/%name
install -dpm0755 %{buildroot}%{_libdir}/systemd/system
install -Dpm0644 %SOURCE2 %{buildroot}%{_sysconfdir}/systemd/system/%name.service
install -dpm0755 %{buildroot}%{_sysconfdir}/%name
install -Dpm0644 %SOURCE3 %{buildroot}%{_sysconfdir}/%name/%name.env.example
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
%files
%doc README.md LICENSE LICENSE-COMMERCIAL
%{_bindir}/%{name}
%{_sysconfdir}/systemd/system/%name.service
%{_sysconfdir}/%name/%name.env.example
%_bindir/%name
%_unitdir/%name.service
%config(noreplace) %_sysconfdir/%name/%name.env
%changelog
* Mon Feb 23 2026 Romenskiy Arseniy <romenskiy@altlinux.ru> 0.4.1-alt1