6 Commits
main ... tls

Author SHA1 Message Date
Михаил Капелько
42b823dd31 ip 2025-09-20 23:14:58 +03:00
Михаил Капелько
62232d6828 add cert 2025-09-05 23:28:47 +03:00
Михаил Капелько
dd7f08ffcd install certbot 2025-09-05 22:56:28 +03:00
Михаил Капелько
58e384b02c unused 2025-09-05 22:51:38 +03:00
Михаил Капелько
2a470306ce domain nginx 2025-09-05 22:45:49 +03:00
Михаил Капелько
68b2b3aa7b пусто 2025-09-05 22:44:10 +03:00
4 changed files with 19 additions and 7 deletions

3
cert.renew Executable file
View File

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

3
cert.setup Executable file
View File

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

View File

@@ -1,11 +1,17 @@
# Redirect HTTP to HTTPS
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 80;
server_name kornerr.ru;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_name kornerr.ru;
ssl_certificate /etc/encrypt/fullchain.pem;
ssl_certificate_key /etc/encrypt/privkey.pem;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332

View File

@@ -1,4 +1,4 @@
acl tul src 83.221.16.86
acl tul src 83.221.16.80
http_access allow tul
http_access deny all
http_port 3128