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;