2 changed files with 66 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||
[Unit] |
|||
Description=Minimal forward authentication service for the traefik reverse proxy |
|||
Wants=network.target |
|||
After=network-online.target traefik.service keycloak.service |
|||
|
|||
[Service] |
|||
Restart=always |
|||
Type=simple |
|||
ExecStart=/opt/traefik/bin/traefik-forward-auth |
|||
WorkingDirectory=/srv/traefik |
|||
User=traefik |
|||
Group=itix-svc |
|||
|
|||
[Install] |
|||
WantedBy=multi-user.target default.target |
|||
@ -0,0 +1,51 @@ |
|||
%global goipath github.com/thomseddon/traefik-forward-auth |
|||
Version: 2.2.0 |
|||
|
|||
%gometa |
|||
|
|||
%global common_description %{expand: Minimal forward authentication service |
|||
that provides Google/OpenID oauth based login and authentication for the |
|||
traefik reverse proxy} |
|||
|
|||
%global golicenses LICENSE.md |
|||
|
|||
Name: traefik-forward-auth |
|||
Release: itix1 |
|||
Summary: Minimal forward authentication service for the traefik reverse proxy |
|||
License: MIT |
|||
ExclusiveArch: x86_64 |
|||
URL: %{gourl} |
|||
Source0: %{gosource} |
|||
Source1: traefik-forward-auth.service |
|||
Requires: traefik |
|||
BuildRequires: systemd |
|||
BuildRequires: go-rpm-macros |
|||
|
|||
%description |
|||
%{common_description} |
|||
|
|||
%global _missing_build_ids_terminate_build 0 |
|||
%global _build_id_links none |
|||
%global debug_package %{nil} |
|||
|
|||
%prep |
|||
%goprep |
|||
cp %{S:1} %{name}.service |
|||
|
|||
%build |
|||
CGO_ENABLED=0 GO111MODULE=on go build -o %{gobuilddir}/traefik-forward-auth %{goipath}/cmd |
|||
|
|||
%install |
|||
|
|||
install -D %{gobuilddir}/traefik-forward-auth %{buildroot}/opt/traefik/bin/traefik-forward-auth |
|||
install -D -m 0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service |
|||
|
|||
%files |
|||
%license LICENSE.md |
|||
%defattr(0644, root, root, 0755) |
|||
%attr(0755, root, root) /opt/traefik/bin/traefik-forward-auth |
|||
%{_unitdir}/%{name}.service |
|||
|
|||
%changelog |
|||
* Mon Feb 22 2021 Nicolas MASSE <nicolas.masse@itix.fr> - 2.2.0-itix1 |
|||
- First release |
|||
Loading…
Reference in new issue