Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 72dea1d665 | |||
| 1a14fbb5f1 | |||
| 200dbf50fc | |||
| c17d1c49f1 | |||
| abb193a03c | |||
| d26a6e5ec8 |
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@ NAME = netoik-rp
|
|||||||
VERSION = $(shell git describe --abbrev=0)
|
VERSION = $(shell git describe --abbrev=0)
|
||||||
RELEASE = $(shell git rev-parse --short HEAD)
|
RELEASE = $(shell git rev-parse --short HEAD)
|
||||||
ARCH = noarch
|
ARCH = noarch
|
||||||
OWNER = samuel
|
OWNER = netoik
|
||||||
SUMMARY = "Netoïk Reverse Proxy"
|
SUMMARY = "Netoïk Reverse Proxy"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
URL = "https://git.netoik.io/$(OWNER)/$(NAME)"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Netoïk reverse proxy 
|
# Netoïk reverse proxy 
|
||||||
|
|
||||||
Build an RPM package which will install several tools.
|
Build an RPM package which will install several tools.
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ Some commands to deploy the RPM package on server
|
|||||||
|
|
||||||
- Add Gitea repo to your repo list:
|
- Add Gitea repo to your repo list:
|
||||||
```shell
|
```shell
|
||||||
dnf config-manager --add-repo https://git.netoik.io/api/packages/samuel/rpm.repo
|
dnf config-manager --add-repo https://git.netoik.io/api/packages/netoik/rpm.repo
|
||||||
dnf repolist | grep gitea-samuel
|
dnf repolist | grep gitea-samuel
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -47,15 +47,15 @@ if [ -z $SKIP_CERTBOT ]; then
|
|||||||
if ! certbot certificates --cert-name netoik.io | grep --quiet netoik.io; then
|
if ! certbot certificates --cert-name netoik.io | grep --quiet netoik.io; then
|
||||||
certbot certonly --cert-name netoik.io --non-interactive --agree-tos --email samuel.campos@netoik.io --dns-ovh --dns-ovh-credentials %{_sysconfdir}/certbot/ovh.ini -d *.netoik.io -d *.samuel-campos.fr
|
certbot certonly --cert-name netoik.io --non-interactive --agree-tos --email samuel.campos@netoik.io --dns-ovh --dns-ovh-credentials %{_sysconfdir}/certbot/ovh.ini -d *.netoik.io -d *.samuel-campos.fr
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create ssl dh params if not already exists
|
|
||||||
if [ ! -f "%{_sysconfdir}/letsencrypt/ssl-dhparams.pem" ]; then
|
|
||||||
openssl dhparam -out %{_sysconfdir}/letsencrypt/ssl-dhparams.pem 2048
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
else
|
||||||
# Skipping certbot, so remove certificate entries in nginx conf
|
# Skipping certbot, so create self-signed certificate
|
||||||
sed --in-place 's/^ssl_certificate/# ssl_certificate/g' %{_sysconfdir}/nginx/conf.d/0_security.conf
|
mkdir --parents /etc/letsencrypt/live/netoik.io
|
||||||
|
openssl req -newkey rsa:4096 -nodes -keyout /etc/letsencrypt/live/netoik.io/privkey.pem -x509 -days 365 -out /etc/letsencrypt/live/netoik.io/fullchain.pem -subj "/C=US/ST=State/L=City/O=Organization/OU=Department/CN=netoik.io"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create ssl dh params if not already exists
|
||||||
|
if [ ! -f "%{_sysconfdir}/letsencrypt/ssl-dhparams.pem" ]; then
|
||||||
|
openssl dhparam -out %{_sysconfdir}/letsencrypt/ssl-dhparams.pem 2048
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
|
|||||||
Reference in New Issue
Block a user