Compare commits
3 Commits
v0.1.35
...
c9253b5d08
| Author | SHA1 | Date | |
|---|---|---|---|
| c9253b5d08 | |||
| 1770301a87 | |||
| 33754a20fc |
@@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user