From 3a8b7b07a7a9fd761e6406316241f7ec5a7a8abe Mon Sep 17 00:00:00 2001 From: phzhik Date: Fri, 7 Jul 2023 01:45:22 +0400 Subject: [PATCH] * updated nginx.conf --- _deploy/nginx.conf | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/_deploy/nginx.conf b/_deploy/nginx.conf index cae2b0e..ebeda69 100644 --- a/_deploy/nginx.conf +++ b/_deploy/nginx.conf @@ -3,12 +3,20 @@ upstream django { } server { - set $APP_HOME /var/www/phzhik-poizonstore; - listen 80; server_name crm-poizonstore.ru; + return 301 https://$host$request_uri; +} + +server { + set $APP_HOME /var/www/phzhik-poizonstore; + + listen 443 ssl; + server_name crm-poizonstore.ru; charset utf-8; + # === Add here SSL config === + # max upload size client_max_body_size 75M; # adjust to taste