From a62fd823bf2e441eab59d7e72ff550c999cebf05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=D0=9F=D1=80=D0=B8=D0=BC=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Wed, 12 Jan 2022 19:29:29 +0300 Subject: [PATCH] victorina --- 80.conf | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/80.conf b/80.conf index 9858686..9f39b71 100644 --- a/80.conf +++ b/80.conf @@ -151,16 +151,25 @@ server { } } -# server { -# listen 80; -# index index.php index.html index.htm index.nginx-debian.html; -# server_name victorina.inno-js.ru; -# root /home/ijl/ijl/apps/petrus/dist; +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + index index.php index.html index.htm index.nginx-debian.html; -# location / { -# try_files $uri $uri/ /index.html; -# } -# } + server_name victorina.inno-js.ru; + + ssl_certificate /etc/letsencrypt/live/inno-js.ru/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/inno-js.ru/privkey.pem; + ssl_trusted_certificate /etc/letsencrypt/live/inno-js.ru/chain.pem; + + root /home/ijl/ijl/apps/petrus/dist; + + include /etc/nginx/snippets/ssl-params.conf; + + location / { + try_files $uri $uri/ /index.html; + } +} # server { # listen 80;