Compare commits

...

4 Commits

Author SHA1 Message Date
Михаил Капелько
5258bb012e Revert "highlight client scripgts"
This reverts commit 8a64ccaa3f.
2025-12-06 06:55:24 +03:00
Михаил Капелько
ec554a2aa9 Revert "rename better"
This reverts commit e2a09dcaaf.
2025-12-06 06:55:02 +03:00
Михаил Капелько
e86a5b0989 Revert "add some steps"
This reverts commit d9d691db1d.
2025-12-06 06:54:40 +03:00
Михаил Капелько
3b173d32fb Revert "rename cfg"
This reverts commit bc380a60a4.
2025-12-06 06:54:17 +03:00
12 changed files with 7 additions and 62 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash
# https://habr.com/ru/articles/735712/
certbot certonly --manual --preferred-challenges http -d "kornerr.ru"

View File

@@ -1,3 +1,3 @@
#!/bin/bash -e
#!/bin/bash
# https://habr.com/ru/articles/735712/
brew install certbot

View File

@@ -1,11 +0,0 @@
#!/bin/bash -e
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
T=$SDIR/../step
STEP=0
source $T/ensureRootUser
source $T/copyNginxACMEConfig
source $T/restartNginx
source $T/copyNginxProdConfig
source $T/restartNginx

5
nginx.setup Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
apt install nginx
cp nginx/cfg /etc/nginx/sites-enabled/default
systemctl restart nginx

View File

@@ -1,10 +0,0 @@
# Serve only through HTTP while updating the certificate
server {
listen 80;
server_name kornerr.ru;
root /var/www/html;
location / {
try_files $uri $uri/ =404;
}
}

View File

@@ -5,7 +5,6 @@ server {
return 301 https://$server_name$request_uri;
}
# Serve through HTTPS only
server {
listen 443 ssl;
server_name kornerr.ru;

View File

@@ -1,9 +0,0 @@
#!/bin/bash -e
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
T=$SDIR/../step
STEP=0
source $T/ensureRootUser
source $T/installNginx
source $T/copyNginxProdConfig
source $T/restartNginx

View File

@@ -1,5 +0,0 @@
#!/bin/bash
STEP=$((STEP+1))
echo -e "\n> > > > Шаг №$STEP. Копируем настройки Nginx для ACME"
cp $SDIR/../nginx/acme.cfg /etc/nginx/sites-enabled/default

View File

@@ -1,5 +0,0 @@
#!/bin/bash
STEP=$((STEP+1))
echo -e "\n> > > > Шаг №$STEP. Копируем боевые настройки Nginx"
cp $SDIR/../nginx/prod.cfg /etc/nginx/sites-enabled/default

View File

@@ -1,9 +0,0 @@
#!/bin/bash
# https://askubuntu.com/a/15856
STEP=$((STEP+1))
echo -e "\n> > > > Шаг №$STEP. Проверяем запуск из-под root"
if [[ $EUID -ne 0 ]]; then
echo "ОШИБКА: Перезапустите как root"
exit 1
fi

View File

@@ -1,5 +0,0 @@
#!/bin/bash
STEP=$((STEP+1))
echo -e "\n> > > > Шаг №$STEP. Устанавливаем Nginx"
apt install nginx

View File

@@ -1,5 +0,0 @@
#!/bin/bash
STEP=$((STEP+1))
echo -e "\n> > > > Шаг №$STEP. Перезапускаем Nginx"
systemctl restart nginx