Compare commits
2 commits
8184f9ab0b
...
fe558b3f35
| Author | SHA1 | Date | |
|---|---|---|---|
| fe558b3f35 | |||
| ea21426c37 |
3 changed files with 11 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue