Compare commits

...

3 Commits

Author SHA1 Message Date
c9253b5d08 Fix format 2026-01-02 22:14:00 +01:00
1770301a87 Add requirement augeas-libs 2026-01-01 22:45:25 +01:00
33754a20fc Add dh params size 2026-01-01 21:02:12 +01:00
2 changed files with 3 additions and 5 deletions

View File

@@ -25,5 +25,3 @@ add_header Cross-Origin-Resource-Policy "same-site"
add_header Permissions-Policy "geolocation=(), camera=(), microphone=()" always; add_header Permissions-Policy "geolocation=(), camera=(), microphone=()" always;
add_header Server "webserver" always; add_header Server "webserver" always;
add_header X-Robots-Tag "noindex, nofollow" always; add_header X-Robots-Tag "noindex, nofollow" always;

View File

@@ -10,7 +10,7 @@ URL: https://git.netoik.io/samuel/netoik-rp
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Buildarch: noarch Buildarch: noarch
BuildRequires: make BuildRequires: make
Requires: nginx python3 python-devel augeas-devel gcc openssl Requires: nginx python3 python-devel (augeas-devel or augeas-libs) gcc openssl
%description %description
Install the reverse proxy called nginx with a predefined configuration and with TLS certificates attached to netoik.io Install the reverse proxy called nginx with a predefined configuration and with TLS certificates attached to netoik.io
@@ -41,7 +41,7 @@ if [ $1 == 1 ]; then
%{_bindir}/env printf "\nAutomatic certbot renew\n0 12 * * * root sleep $((RANDOM % 3600)) && certbot renew -q\n" >> %{_sysconfdir}/crontab %{_bindir}/env printf "\nAutomatic certbot renew\n0 12 * * * root sleep $((RANDOM % 3600)) && certbot renew -q\n" >> %{_sysconfdir}/crontab
# Create ssl dh params # Create ssl dh params
%{_bindir}/env openssl dhparam -out %{_sysconfdir}/letsencrypt/ssl-dhparams.pem %{_bindir}/env openssl dhparam -out %{_sysconfdir}/letsencrypt/ssl-dhparams.pem 2048
# Stop nginx to be sure changes are taken in account # Stop nginx to be sure changes are taken in account
%{_bindir}/env systemctl stop nginx %{_bindir}/env systemctl stop nginx